JVM IR: Resolve fake overrides during inline class mangling

This is necessary to determine which mangling scheme to use (KT-51672).
This commit is contained in:
Steven Schäfer
2022-03-21 20:59:30 +01:00
committed by teamcity
parent 57a134c543
commit 1134dc3858
6 changed files with 48 additions and 6 deletions
+20
View File
@@ -0,0 +1,20 @@
// MODULE: lib
// WITH_STDLIB
// TARGET_BACKEND: JVM
// FILE: lib.kt
@JvmInline
value class S(val value: String)
interface A {
fun f(s: S): S = s
}
interface B : A
// MODULE: main(lib)
// FILE: main.kt
interface C : B
fun box(): String {
return object : C {}.f(S("OK")).value
}