Files
kotlin-fork/js/js.translator/testData/callableReference/property/cases/simpleExtension.kt
T

16 lines
351 B
Kotlin
Vendored

// This test was adapted from compiler/testData/codegen/boxWithStdlib/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")
}