ballerina-lang
ballerina-lang copied to clipboard
[Bug]: Semantic API does not create a symbol for parameters in expression function
Description
type F function (int, int) returns int;
type R record {
F f = (a, b) => a; // Issue: symbol for the `a` and `b` is empty.
F antherF = function(int a, int b) returns int {
return b;
};
};
In the above code, the semantic API gives Optional.empty() for the parameters of the expression function in field a.
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