Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/smartcasts/lazyDeclaresAndModifies.fir.kt
T

11 lines
237 B
Kotlin
Vendored

class My(val x: Int?) {
val y: Int? by lazy {
var z = x
while (z != null) {
z = z.hashCode()
if (z < 0) return@lazy z
if (z == 0) z = null
}
return@lazy null
}
}