mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
230 B
Kotlin
Vendored
16 lines
230 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
class A {
|
|
var result = "Fail"
|
|
|
|
fun foo(newResult: String) {
|
|
result = newResult
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
val a = A()
|
|
val x = A::foo
|
|
x(a, "OK")
|
|
return a.result
|
|
}
|