forked from Mirror/wren
Make IO a static class instead of a singleton.
This commit is contained in:
@ -9,4 +9,4 @@ class Foo {
|
||||
}
|
||||
|
||||
var closure = (new Foo).getClosure
|
||||
io.write(closure.call) // expect: Foo
|
||||
IO.write(closure.call) // expect: Foo
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
class Outer {
|
||||
method {
|
||||
io.write(this.toString) // expect: Outer
|
||||
IO.write(this.toString) // expect: Outer
|
||||
|
||||
fn {
|
||||
io.write(this.toString) // expect: Outer
|
||||
IO.write(this.toString) // expect: Outer
|
||||
|
||||
class Inner {
|
||||
method {
|
||||
io.write(this.toString) // expect: Inner
|
||||
IO.write(this.toString) // expect: Inner
|
||||
}
|
||||
toString { return "Inner" }
|
||||
}
|
||||
|
||||
@ -13,4 +13,4 @@ class Foo {
|
||||
}
|
||||
|
||||
var closure = (new Foo).getClosure
|
||||
io.write(closure.call.call.call) // expect: Foo
|
||||
IO.write(closure.call.call.call) // expect: Foo
|
||||
|
||||
@ -3,4 +3,4 @@ class Foo {
|
||||
baz { return "baz" }
|
||||
}
|
||||
|
||||
io.write((new Foo).bar.baz) // expect: baz
|
||||
IO.write((new Foo).bar.baz) // expect: baz
|
||||
|
||||
Reference in New Issue
Block a user