Files
kotlin/compiler/testData/diagnostics/tests/controlFlowAnalysis/constructorPropertyInterdependence.kt
2016-08-08 17:48:08 +03:00

8 lines
193 B
Kotlin
Vendored

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