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

Quoted identifier of the error keyword results in compilation failure #29860

Open
IrushiL opened this issue Apr 6, 2021 · 0 comments
Open

Quoted identifier of the error keyword results in compilation failure #29860

IrushiL opened this issue Apr 6, 2021 · 0 comments
Labels
Area/TypeChecker Type Checker related issues #Compiler Lang/Error Type `error` related issues Priority/Blocker Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug

Comments

@IrushiL
Copy link
Contributor

IrushiL commented Apr 6, 2021

Description:
$subject

Gives the following error:

ERROR [main.bal:(4:17,4:23)] redeclared builtin symbol 'error'

Steps to reproduce:

import ballerina/io;

// Compilation failure
public function 'error() {
    io:println("Hello World!");
}

// Works
public function 'int() {
    io:println("Hello World!");
}

Affected Versions:
Ballerina Swan Lake Alpha 4

OS, DB, other environment details and versions:

Related Issues (optional):
#23045

Suggested Labels (optional):

Suggested Assignees (optional):

@IrushiL IrushiL added Type/Bug Priority/Blocker Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Lang/Error Type `error` related issues labels Apr 6, 2021
@gimantha gimantha added the Area/TypeChecker Type Checker related issues #Compiler label Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/TypeChecker Type Checker related issues #Compiler Lang/Error Type `error` related issues Priority/Blocker Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug
Projects
None yet
Development

No branches or pull requests

2 participants