ludic/examples/rejected/module_let_alias.ludic

9 lines
218 B
Text

# 0.S: a module-level let is immutable all the way down, through a local that holds it too
program ModuleLetAlias {
let LIMITS: []int = [1, 2]
entry {
let l = LIMITS
push(l, 3)
print(len(LIMITS))
}
}