Files
kotlin/compiler/testData/codegen/boxWithStdlib/callableReference/property/simpleTopLevel.kt
2014-07-02 01:26:19 +04:00

11 lines
266 B
Kotlin

data class Box(val value: String)
val foo = Box("lol")
fun box(): String {
val property = ::foo
if (property.get() != Box("lol")) return "Fail value: ${property.get()}"
if (property.name != "foo") return "Fail name: ${property.name}"
return "OK"
}