Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/uninintializedProperyWithDirectAndDelayedInitialization.kt
T
Dmitriy Novozhilov c87e489dc9 [FIR] Run CFA for member properties even if they have initializer
^KT-56678 Fixed
^KT-56682 Fixed
2023-02-17 11:26:17 +00:00

19 lines
279 B
Kotlin
Vendored

// FIR_IDENTICAL
// ISSUE: KT-56678
class A {
val b = <!UNINITIALIZED_VARIABLE!>a<!>
val a = 1
val c = a
}
class B {
val b = <!UNINITIALIZED_VARIABLE!>a<!>
val a: Int
val c = <!UNINITIALIZED_VARIABLE!>a<!>
init {
a = 1
}
val d = a
}