Add a new test file `this_in_static_method.wren` that validates `this` evaluates to the class object when used inside a static method, and removes the TODO comment from `this_in_method.wren` that previously noted this untested behavior.
7 lines
103 B
Plaintext
7 lines
103 B
Plaintext
class Foo {
|
|
bar { return this }
|
|
baz { return "baz" }
|
|
}
|
|
|
|
IO.print((new Foo).bar.baz) // expect: baz
|