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