mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
12 lines
188 B
Kotlin
12 lines
188 B
Kotlin
class A {
|
|
fun foo(k: Int) = k
|
|
|
|
fun result() = this.(::foo)(111)
|
|
}
|
|
|
|
fun box(): String {
|
|
val result = A().result()
|
|
if (result != 111) return "Fail $result"
|
|
return "OK"
|
|
}
|