7aa2642a2b
- Always report "There is no applicable constructor for call without arguments in superclass" under `constructor` keyword by replacing default TracingStrategy - Remove positioning strategy used for reporting non-applicable for empty delegation calls #KT-6971 Fixed
11 lines
279 B
Kotlin
11 lines
279 B
Kotlin
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
open class B(x: Double) {
|
|
constructor(x: Int): this(1.0)
|
|
constructor(x: String): this(1.0)
|
|
}
|
|
trait C
|
|
class A : B, C {
|
|
constructor(): <!NONE_APPLICABLE!>super<!>(' ')
|
|
<!EXPLICIT_DELEGATION_CALL_REQUIRED!>constructor<!>(x: Int)
|
|
}
|