mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
7 lines
201 B
Plaintext
7 lines
201 B
Plaintext
class Foo {
|
|
construct real() {}
|
|
}
|
|
|
|
// Classes do not get an argument-less "new()" if they define a constructor.
|
|
var foo = Foo.new() // expect runtime error: Foo metaclass does not implement 'new()'.
|