1
0
forked from Mirror/wren

Make IO a static class instead of a singleton.

This commit is contained in:
Bob Nystrom
2013-12-21 19:25:09 -08:00
parent 24a6f4cd8c
commit 6c3aa85228
119 changed files with 532 additions and 536 deletions

View File

@ -9,4 +9,4 @@ class Foo {
}
var closure = (new Foo).getClosure
io.write(closure.call) // expect: Foo
IO.write(closure.call) // expect: Foo

View File

@ -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" }
}

View File

@ -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

View File

@ -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