ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

[Bug]: Semantic API does not create a symbol for parameters in expression function

Open SasinduDilshara opened this issue 1 year ago • 0 comments

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

SasinduDilshara avatar Oct 09 '24 02:10 SasinduDilshara