Files
kotlin-fork/compiler/testData/diagnostics/tests/constructorConsistency/derivedProperty.fir.kt
T

12 lines
145 B
Kotlin
Vendored

interface Base {
val x: Int
}
open class Impl(override val x: Int) : Base {
init {
if (this.x != 0) foo()
}
}
fun foo() {}