Add failing lambda test with bind variable
This commit is contained in:
parent
9963933f51
commit
c416ca1e4d
@ -1,2 +1,6 @@
|
||||
auto bob = fun(x) { x + 1 }
|
||||
assert_equal(4, bob(3));
|
||||
|
||||
var y=3
|
||||
auto bob2 = fun[y](x) { x + y }
|
||||
assert_equal(7, bob2(4))
|
||||
|
Loading…
x
Reference in New Issue
Block a user