forked from Mirror/wren
* Eliminate "new" reserved word. * Allow "this" before a method definition to define a constructor. * Only create a default constructor for classes that don't define one.
3 lines
112 B
Plaintext
3 lines
112 B
Plaintext
var f2 = Fn.new {|a, b| IO.print(a, b) }
|
|
f2.call("a") // expect runtime error: Function expects more arguments.
|