mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
12 lines
190 B
Kotlin
Vendored
12 lines
190 B
Kotlin
Vendored
fun foo(o: Int, k: Int) = o + k
|
|
|
|
class A {
|
|
fun bar() = (::foo)(111, 222)
|
|
}
|
|
|
|
fun box(): String {
|
|
val result = A().bar()
|
|
if (result != 333) return "Fail $result"
|
|
return "OK"
|
|
}
|