2ecba6ac39
This directive anyway does not make test run twice with OI, and with NI It only once run the test with specific settings (// LANGUAGE) and ignores irrelevant (OI or NI tags)
27 lines
594 B
Kotlin
Vendored
27 lines
594 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
open class A protected constructor(x: Int) {
|
|
protected constructor() : this(1)
|
|
public constructor(x: Double) : this(3)
|
|
}
|
|
|
|
class B4 : A(1) {
|
|
init {
|
|
<!PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>A<!>()
|
|
<!PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>A<!>(1)
|
|
A(5.0)
|
|
}
|
|
|
|
fun foo() {
|
|
<!PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>A<!>()
|
|
<!PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>A<!>(1)
|
|
A(5.0)
|
|
|
|
object : A() {}
|
|
object : A(1) {}
|
|
object : A(5.0) {}
|
|
|
|
class Local : A()
|
|
}
|
|
}
|