Files
kotlin/compiler/testData/codegen/box/callableReference/objectMemberUnitOneStringArg.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
184 B
Kotlin

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