Files
kotlin-fork/compiler/testData/codegen/box/properties/kt1892.kt
T
2019-11-19 11:00:09 +03:00

7 lines
206 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
val Int.ext: () -> Int get() = { 5 }
val Long.ext: Long get() = 4.ext().toLong() //(c.kt:4)
val y: Long get() = 10L.ext
fun box(): String = if (y == 5L) "OK" else "fail: $y"