[Bug]: typeOf()
API returns incorrect result for simple name ref in xml attribute access expr
#39015
Labels
Area/Compiler
Reason/Invalid
Issue is invalid.
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
Description
Consider the following code:
Here, when we perform
semanticModel.typeOf()
onx5
inx5.io:
expression, the result isstring|error
, notxml
.When investigated seems like the relevant BLangNode's derivedType is also set to
string|error
in this case.Steps to Reproduce
No response
Affected Version(s)
2201.3.0
OS, DB, other environment details and versions
No response
Related area
-> Editor
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: