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

No error for multiple const declaration for the same variable. #274

Closed
Kray-G opened this issue Apr 15, 2021 · 0 comments
Closed

No error for multiple const declaration for the same variable. #274

Kray-G opened this issue Apr 15, 2021 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Kray-G
Copy link
Owner

Kray-G commented Apr 15, 2021

Here is the code.

const A = 1;
const A = 2;
System.println(A);

No error and displaying 1 in this case.

@Kray-G Kray-G added the bug Something isn't working label Apr 15, 2021
@Kray-G Kray-G self-assigned this Apr 15, 2021
@Kray-G Kray-G added this to the v1.1.0 milestone Apr 15, 2021
@Kray-G Kray-G changed the title No error when there are multiple const declarations for the same variable. No error for multiple const declaration for the same variable. Apr 15, 2021
@Kray-G Kray-G closed this as completed in c6f7f92 Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant