Allow no super class initialization within header

if there is no primary constructor
This commit is contained in:
Denis Zharkov
2015-02-05 11:28:18 +03:00
parent 1555eec954
commit 3509cafcea
7 changed files with 47 additions and 4 deletions
@@ -4,7 +4,7 @@ open class B(x: Double) {
constructor(x: String): this(1.0) {}
}
trait C
class A : <!SUPERTYPE_NOT_INITIALIZED!>B<!>, C {
class A : B, C {
constructor(): <!NONE_APPLICABLE!>super<!>(' ') { }
constructor(x: Int) <!NONE_APPLICABLE!><!>{ }
}