forked from Mirror/wren
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" }
|
||||
|
||||
closeOverGet {
|
||||
return Fn.new { _field }
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// This test exists mainly to make sure the GC traces instance fields.
|
||||
class Node {
|
||||
this new(left, value, right) {
|
||||
construct new(left, value, right) {
|
||||
_left = left
|
||||
_value = value
|
||||
_right = right
|
||||
|
||||
Reference in New Issue
Block a user