Use "construct" instead of "this" to define constructors.
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
class Foo {}
|
||||
|
||||
var foo = Foo.new()
|
||||
IO.print(foo is Foo) // expect: true
|
||||
|
||||
// TODO: Test precedence and grammar of what follows "new".
|
||||
Reference in New Issue
Block a user