forked from Mirror/wren
Instead, Fn.call(...) is a special *method* type that has the same special sauce. The goal is eventually to get rid of the primitive result type entirely.
3 lines
117 B
Plaintext
3 lines
117 B
Plaintext
var f2 = Fn.new {|a, b| System.print(a + b) }
|
|
f2.call("a") // expect runtime error: Function expects more arguments.
|