ballerina-lang
ballerina-lang copied to clipboard
[Bug]: Semantic model does not give a symbol for local variable
trafficstars
Description
function testMatchClause(any|error e) returns string {
match e {
var error(localVar9) => { // ref 1
return <string>localVar9 + " is an error"; // ref2
}
}
return "No match";
}
If we call the semanticModel.symbol() for localVar9 in the ref 1 scenario, it does not gives a symbol.
But in the ref 2 scenario, it gives a symbol.
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