Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/varInAccessor.fir.kt
T

17 lines
316 B
Kotlin
Vendored

var x: Int = 0
get() {
var y: Int? = null
if (y != null) {
return y.hashCode()
}
return field
}
set(param) {
var y: Int? = null
if (y != null) {
field = y.hashCode()
}
else {
field = param
}
}