[FIR] Add diagnostic for primary constructor not called

This commit is contained in:
Nick
2020-07-31 18:01:52 +03:00
committed by Mikhail Glukhikh
parent bb0e1b7390
commit 0f213e58db
12 changed files with 44 additions and 23 deletions
@@ -7,7 +7,7 @@ expect enum class En(x: Int) {
E2(42),
;
constructor(s: String)
<!PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED!>constructor(s: String)<!>
}
expect enum class En2 {
@@ -9,7 +9,7 @@ expect class Foo(
"no"
}
constructor(s: String) {
<!PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED!>constructor(s: String)<!> {
"no"
}
@@ -4,7 +4,7 @@
// FILE: common.kt
expect class Foo(zzz: Int) {
constructor(aaa: Boolean)
<!PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED!>constructor(aaa: Boolean)<!>
fun f1(xxx: String): String
}