mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-18 13:49:59 +01:00
Use "construct" instead of "this" to define constructors.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
this new() {
|
||||
construct new() {
|
||||
_field1 = 1
|
||||
_field2 = 2
|
||||
_field3 = 3
|
||||
|
||||
Reference in New Issue
Block a user