Use "construct" instead of "this" to define constructors.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
this new(value) { _value = value }
|
||||
construct new(value) { _value = value }
|
||||
toString { _value }
|
||||
bar=(value) {
|
||||
_value = value
|
||||
|
||||
Reference in New Issue
Block a user