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
+8 -8
View File
@@ -1,15 +1,15 @@
class Foo {
static methodOnFoo { io.write("foo") }
static method(a) { io.write("foo") }
static method(a, b, c) { io.write("foo") }
static override { io.write("foo") }
static methodOnFoo { IO.write("foo") }
static method(a) { IO.write("foo") }
static method(a, b, c) { IO.write("foo") }
static override { IO.write("foo") }
}
class Bar is Foo {
static methodOnBar { io.write("bar") }
static method(a, b) { io.write("bar") }
static method(a, b, c, d) { io.write("bar") }
static override { io.write("bar") }
static methodOnBar { IO.write("bar") }
static method(a, b) { IO.write("bar") }
static method(a, b, c, d) { IO.write("bar") }
static override { IO.write("bar") }
}
Bar.methodOnFoo // expect: foo