JET-6 Perform checks for primary and secondary constructors (In progress): class having a stateful property must have a constructor

This commit is contained in:
Andrey Breslav
2011-05-04 15:13:25 +04:00
parent 441bef9935
commit 8c8f1eb4dd
9 changed files with 76 additions and 9 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class Iteratee<in I, out O> {
abstract fun done() : O
}
class Sum : Iteratee<Int, Int> {
class Sum() : Iteratee<Int, Int> {
override fun process(item : Int) : Iteratee<Int, Int> {
return foobar.done<Int>(item);
}