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]: Invalid position for Identifier in on fail clause #40281

Open
suleka96 opened this issue Apr 23, 2023 · 0 comments
Open

[Bug]: Invalid position for Identifier in on fail clause #40281

suleka96 opened this issue Apr 23, 2023 · 0 comments
Labels
needTriage The issue has to be inspected and labeled manually Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug userCategory/Compilation

Comments

@suleka96
Copy link
Contributor

Description

The current position of the identifier in an on fail clause points to the on fail clause itself rather than to the position of the typed binding pattern.

Steps to Reproduce

    do {

    } on fail error e { // unused variable 'e' at 7 when it should be at 15
        int k = i.pop();
    }

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

@suleka96 suleka96 added Type/Bug Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. labels Apr 23, 2023
@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needTriage The issue has to be inspected and labeled manually Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug userCategory/Compilation
Projects
None yet
Development

No branches or pull requests

2 participants