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

11 lines
233 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class A(val x: Int)
fun box(): String {
val p = A::x
if (p.get(A(42)) != 42) return "Fail 1"
if (p.get(A(-1)) != -1) return "Fail 2"
if (p.name != "x") return "Fail 3"
return "OK"
}