[Bug]: Can't use types that don't explicitly redefine strings
field for raw template expressions
#43501
Labels
strings
field for raw template expressions
#43501
Description
For raw template expressions we can given a object type that includes
object:RawTemplat
with a narrowerinsertions
field as the contextually expected type. However if that type in question don't explicitly override thestrings
field,insertions
andstrings
get mixed upThis is potentionally an object type inclusion bug
Steps to Reproduce
Consider,
This results: (note insertions and strings are interchanged in second example)
This caues NPE:
Affected Version(s)
Ballerina 2201.10.1 (Swan Lake Update 10)
Language specification 2024R1
Update Tool 1.4.3
OS, DB, other environment details and versions
No response
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: