Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/constructorPropertyInterdependence.fir.kt
T

8 lines
164 B
Kotlin
Vendored

// See KT-12809
open class A(val a: Any) {
override fun toString() = a.toString()
}
object B : A(B.foo) { // call B.foo should be not-allowed
val foo = 4
}