tact-lang / tact

Tact compiler main repository
https://tact-lang.org
MIT License
371 stars 103 forks source link

Assignments to constants are not caught by typechecker #681

Closed anton-trunov closed 1 month ago

anton-trunov commented 1 month ago

The following snippet passes the typechecker, but it should not:

const foo: Int = 42;

fun bar() {
    foo = 43 // <-- trying to assign to a constant
}