Open rdulmina opened 1 week ago
I believe we always set a mapping type (map type or record type) to mapping values.
This is somewhat similar to what we had at compile-time before your changes to persist the type reference type in the frontend even with expressions.
This may not be incorrect either. Note that in the spec, the type-reference type-descriptor is only for an alias - see https://ballerina.io/spec/lang/master/#type-reference. So what we get with typeof (which is effectively what you're doing here), being a record seems okay.
Description
Consider the below sample
When we get the type of the return value, it is
BRecordType
. This should Ideally beBTypeReferenceType
Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response