Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/protectedVisibility/constructorsInner.kt
T
2020-04-17 12:37:29 +03:00

21 lines
468 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
open class Outer {
inner open class A protected constructor(x: Int) {
protected constructor() : this(1)
protected constructor(x: String) : this(2)
}
inner class B1 : A(1) {}
inner class B2 : A() {}
inner class B3 : A("") {}
inner class B4 : A {
constructor() : super(1)
constructor(x: Int) : super()
constructor(x: Int, y: Int) : super("")
}
}