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.
11 lines
155 B
Plaintext
11 lines
155 B
Plaintext
class Foo {
|
|
static test {
|
|
IO.print(this == Foo) // expect: true
|
|
IO.print(this.bar) // expect: bar
|
|
}
|
|
|
|
static bar { return "bar" }
|
|
}
|
|
|
|
Foo.test
|