mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
13 lines
216 B
Kotlin
Vendored
13 lines
216 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
class A {
|
|
fun foo(k: Int) = k
|
|
|
|
fun result() = (A::foo)(this, 111)
|
|
}
|
|
|
|
fun box(): String {
|
|
val result = A().result()
|
|
if (result != 111) return "Fail $result"
|
|
return "OK"
|
|
}
|