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.
10 lines
112 B
Plaintext
10 lines
112 B
Plaintext
var f = null
|
|
|
|
Fn.new {|param|
|
|
f = Fn.new {
|
|
IO.print(param)
|
|
}
|
|
}.call("param")
|
|
|
|
f.call() // expect: param
|