Files
kotlin/compiler/testData/codegen/box/callableReference/objectMemberUnitNoArgs.kt
Alexander Udalov 596b1622a3 Add tests on callable references
Object members and accessors for private class members
2013-12-24 20:41:20 +04:00

14 lines
158 B
Kotlin

object A {
var result = "Fail"
fun foo() {
result = "OK"
}
}
fun box(): String {
val x = A::foo
A.x()
return A.result
}