04e8cba857
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.
14 lines
175 B
Kotlin
Vendored
14 lines
175 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_RUNTIME
|
|
|
|
@JvmName("bar")
|
|
fun foo() = "foo"
|
|
|
|
fun box(): String {
|
|
val f = (::foo)()
|
|
if (f != "foo") return "Fail: $f"
|
|
|
|
return "OK"
|
|
}
|