[FIR] Add diagnostic for primary constructor not called
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Vendored
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user