Files
kotlin-fork/compiler/testData/codegen/script/kt48025.kts
T
Ilya Chernikov e7cbc9a0fb IR: Process script with LDL as if it is a function body
#KT-46645 fixed
#KT-48025 fixed
2021-08-23 12:49:43 +03:00

15 lines
185 B
Kotlin
Vendored

val p = 0
class ReducedFraction() {
fun plus1() = reducedFractionOf(p)
val y = 1
}
fun reducedFractionOf(a: Int) {
}
val c = ReducedFraction()
val x = c.y
// expected: x: 1