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]: Expose internal generated names in compiler error messages #43002

Open
chiranSachintha opened this issue Jun 28, 2024 · 0 comments
Open
Labels
Area/Diagnostics Issues related Diagnostics reported by the Compiler. #Compiler Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Improvement userCategory/Compilation

Comments

@chiranSachintha
Copy link
Member

Description

public function main() {
    object {} m = new();
}

The compiler error message cannot initialize abstract object '$anonType$_173' is incorrect. This exposes internally generated names to the outside.

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

@chiranSachintha chiranSachintha added Type/Bug Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. labels Jun 28, 2024
@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Jun 28, 2024
@lochana-chathura lochana-chathura added Area/Diagnostics Issues related Diagnostics reported by the Compiler. #Compiler Type/Improvement and removed needTriage The issue has to be inspected and labeled manually Type/Bug labels Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Diagnostics Issues related Diagnostics reported by the Compiler. #Compiler Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Improvement userCategory/Compilation
Projects
None yet
Development

No branches or pull requests

3 participants