7 lines
156 B
Text
7 lines
156 B
Text
|
|
fn test_scoping() -> int do
|
||
|
|
let x = 5
|
||
|
|
let f = lambda (y) y + 1 # simple lambda
|
||
|
|
f = lambda (z) z+1
|
||
|
|
let x = 10 # shadow x
|
||
|
|
f(3) # should work
|
||
|
|
end
|