No more default constructors.

Fixes #296.
This commit is contained in:
Bob Nystrom
2015-09-01 08:16:04 -07:00
parent 36f3059e48
commit 2e83f056c1
86 changed files with 248 additions and 133 deletions
@@ -1,4 +1,6 @@
class Foo {
construct new() {}
getter {
IO.print("getter")
}
@@ -13,6 +15,8 @@ class Foo {
}
class Bar is Foo {
construct new() {}
test {
getter // expect: getter
setter = "value" // expect: setter
@@ -1,4 +1,6 @@
class Foo {
construct new() {}
getter {
IO.print("getter")
}
@@ -1,4 +1,6 @@
class Foo {
construct new() {}
bar { "getter" }
test {
@@ -1,4 +1,6 @@
class Foo {
construct new() {}
bar=(value) {
IO.print("setter")
return value
@@ -1,4 +1,6 @@
class Outer {
construct new() {}
getter {
IO.print("outer getter")
}
@@ -17,6 +19,8 @@ class Outer {
method("arg") // expect: outer method
class Inner {
construct new() {}
getter {
IO.print("inner getter")
}