Files
kotlin-fork/js/js.translator/testData/box/callableReference/property/simpleExtension.kt
T
2018-06-04 18:59:40 +03:00

17 lines
375 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1113
// This test was adapted from compiler/testData/codegen/box/callableReference/property/.
package foo
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")
}