hylo
hylo copied to clipboard
Local let binding does not prevent mutation
The example given in the documentation is
public fun main() {
let gravity = 9.81
&gravity = 11.2 // error: cannot assign, `gravity` is a `let` binding
}
However, this code currently compiles without error