Files
kotlin-fork/compiler/testData/diagnostics/tests/constructorConsistency/initializerWithSecondaryConstructor.kt
T
Dmitrii Gridin 9a4a3d1f49 [LL FIR] introduce test with reversed resolve order
^KT-56543

Merge-request: KT-MR-9299
Merged-by: Dmitrii Gridin <dmitry.gridin@jetbrains.com>
2023-03-22 17:34:07 +00:00

22 lines
346 B
Kotlin
Vendored

// IGNORE_REVERSED_RESOLVE
// FIR_IDENTICAL
private const val A = 0L
private val B = 0L
private fun sample() = 0L
private class PrivateClass
class Foo {
var bar: Long = 0
private var other: PrivateClass? = null
init {
bar = A
bar = B
bar = sample()
other = PrivateClass()
}
constructor()
}