* 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.
6 lines
79 B
Plaintext
6 lines
79 B
Plaintext
class Foo {
|
|
static bar {
|
|
Fn.new { _field = "wat" } // expect error
|
|
}
|
|
}
|