mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-14 23:58:03 +01:00
9 lines
159 B
Plaintext
9 lines
159 B
Plaintext
class Foo {
|
|
construct new() {
|
|
IO.print("ok")
|
|
}
|
|
}
|
|
|
|
var foo = Foo.new() // expect: ok
|
|
foo.new() // expect runtime error: Foo does not implement 'new()'.
|