1
0
forked from Mirror/wren
Files
wren/test/core/function/call_missing_arguments.wren
Bob Nystrom 812bc15380 Get rid of the special "call" primitive result type.
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.
2015-10-03 19:04:11 -07:00

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.