Use "construct" instead of "this" to define constructors.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
this new() { _field = "Foo field" }
|
||||
construct new() { _field = "Foo field" }
|
||||
|
||||
closeOverFooGet {
|
||||
return Fn.new { Fn.new { _field } }
|
||||
@@ -11,7 +11,7 @@ class Foo {
|
||||
}
|
||||
|
||||
class Bar is Foo {
|
||||
this new() {
|
||||
construct new() {
|
||||
super()
|
||||
_field = "Bar field"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user