Use "construct" instead of "this" to define constructors.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
// TODO: Change this.
|
||||
|
||||
class Foo {
|
||||
this named() { _field = "named" }
|
||||
this other() { _field = "other" }
|
||||
construct named() { _field = "named" }
|
||||
construct other() { _field = "other" }
|
||||
|
||||
toString { _field }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user