Inherent type for mapping constructor with no contextually expected type #54
Labels
Area/Lang
Relates to the Ballerina language specification
design/incomplete
Part of design not yet worked out
spec/improve
Something that should be improved in the spec
status/pending
Design is agreed and waiting to be added
Milestone
When a mapping value is constructed by a mapping-constructor-expr that occurs in a context where there is no contextually expected type, what should the inherent type be? e.g.
There are two contradictory principles that might be applied.
any|error
, which would imply inherent type would bemap<any|error>
, ie maximally permissive.record { int a; }
or perhapsrecord {| int a; |}
.The text was updated successfully, but these errors were encountered: