Test "this" in static methods.

This commit is contained in:
Bob Nystrom
2014-02-14 06:37:37 -08:00
parent 59bb7eec7a
commit ca4f4d6660
2 changed files with 10 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
class Foo {
static test {
IO.print(this == Foo) // expect: true
IO.print(this.bar) // expect: bar
}
static bar { return "bar" }
}
Foo.test