-
Notifications
You must be signed in to change notification settings - Fork 755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect diagnostic property in query expression #37450
Comments
As per the spec https://ballerina.io/spec/lang/master/#section_6.35,
The basic type the query being resolved to seem to be correct because |
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now. |
This issue was reopened due to #40497 |
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now. |
Description:
Consider the diagnostic
variable assignment is required
at cursor position.In the diagnostic properties which is used to derive the expected type, we get the
bType
incorrectly asxml<string>
where it should bestring[]
.For a different case like
x1.toBalString()
, we get the type correctly asstring
in the diagnostic properties.Steps to reproduce:
Affected Versions:
2201.2.0 (Swan Lake Update 2)
The text was updated successfully, but these errors were encountered: