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

14 lines
269 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
val String.id: String
get() = this
fun box(): String {
val pr = String::id
if (pr.get("123") != "123") return "Fail value: ${pr.get("123")}"
if (pr.name != "id") return "Fail name: ${pr.name}"
return pr.get("OK")
}