Skip to content
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

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

Open
SasinduDilshara opened this issue Oct 9, 2024 · 0 comments
Labels
Area/SemanticAPI Semantic API Related Issues #Compiler Team/CompilerFETools Semantic API, Formatter, Shell Type/Bug

Comments

@SasinduDilshara
Copy link
Contributor

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 SasinduDilshara added Type/Bug Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Area/SemanticAPI Semantic API Related Issues #Compiler labels Oct 9, 2024
@MaryamZi MaryamZi added Team/CompilerFETools Semantic API, Formatter, Shell and removed Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/SemanticAPI Semantic API Related Issues #Compiler Team/CompilerFETools Semantic API, Formatter, Shell Type/Bug
Projects
None yet
Development

No branches or pull requests

2 participants