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
+2 -4
View File
@@ -1,6 +1,4 @@
class Foo {
construct real() {}
}
class Foo {}
// Classes do not get an argument-less "new()" if they define a constructor.
// Classes do not get a constructor by default.
var foo = Foo.new() // expect runtime error: Foo metaclass does not implement 'new()'.