mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-07 08:31:28 +00:00
IR expects overridden symbols of "invoke" in KFunction to be "invoke" in the corresponding Function classes. Before this commit we don't set overriddenSymbol, now we do.
12 lines
190 B
Kotlin
Vendored
12 lines
190 B
Kotlin
Vendored
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"
|
|
}
|