Add test for redefinition of variables
This commit is contained in:
parent
63f8b6b61a
commit
3ca59d6975
2 changed files with 7 additions and 0 deletions
1
src/tests/redef.exp
Normal file
1
src/tests/redef.exp
Normal file
|
@ -0,0 +1 @@
|
||||||
|
42
|
6
src/tests/redef.lambda
Normal file
6
src/tests/redef.lambda
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
let increase = fun x -> x + 1 in
|
||||||
|
let increase = fun x ->
|
||||||
|
let lop = (increase x) in
|
||||||
|
lop + 1 in
|
||||||
|
|
||||||
|
print (increase 40)
|
Loading…
Reference in a new issue