forked from solstice/solstice
Start work on WASM compatibility, lambda fix
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
def createClosure(int x) fun(int) int {
|
||||
return lambda(int y) int {
|
||||
x + y
|
||||
return x + y
|
||||
}
|
||||
}
|
||||
|
||||
myVar = createClosure(5)
|
||||
|
||||
puts myVar(3)
|
||||
puts myVar(3)
|
||||
|
||||
Reference in New Issue
Block a user