added bindingkind verification
This commit is contained in:
parent
6a1362390c
commit
b959e11e51
11 changed files with 448 additions and 98 deletions
7
test_scoping.sui
Normal file
7
test_scoping.sui
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue