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

7 lines
148 B
Kotlin
Vendored

// FIR_IDENTICAL
class My(val x: Int) {
val y: Int = x + 3
val z: Int? = foo()
fun foo() = if (x >= 0) x else if (y >= 0) y else null
}