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

improve error message on assign to const #103

Open
serkonda7 opened this issue Jul 13, 2023 · 0 comments
Open

improve error message on assign to const #103

serkonda7 opened this issue Jul 13, 2023 · 0 comments
Milestone

Comments

@serkonda7
Copy link
Member

serkonda7 commented Jul 13, 2023

Description and Reproduction Sample

const FOO := 42

fun main() {
	FOO = 1
}

Current Behavior

error: cannot assign to immutable variable "FOO"

Expected Behavior

error: cannot assign to constant "FOO"

Possible Solution and Additional Information

No response

Environment details (bait doctor)

x

@serkonda7 serkonda7 added this to the Backlog milestone Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant