Add test for redefinition of variables

This commit is contained in:
Théophile Bastian 2018-02-16 15:29:58 +01:00
parent 63f8b6b61a
commit 3ca59d6975
2 changed files with 7 additions and 0 deletions

1
src/tests/redef.exp Normal file
View file

@ -0,0 +1 @@
42

6
src/tests/redef.lambda Normal file
View 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)