Files
kotlin-fork/compiler/testData/codegen/bytecodeText/innerClasses/kt56104.kt
T
Mads Sig Ager 7c3cc1d5c1 [JVM_IR] Limit inner class attributes to types in class file (#5081)
* [JVM_IR] Limit inner class attributes to types in class file

Inner class attributes should only be recorded for types that
are materialized in the result class file. In particular, we
should not emit inner classes attributes for types that appear
only in fake overrides. We do map these types to track the
fake overrides for JVM signature clashes but they are not
materialized in the class file.

^KT-56104 Fixed

* [JVM_IR] Consistently pass around materialized boolean in mapType.
2023-01-30 14:11:07 +01:00

14 lines
254 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// FILE: classes.kt
open class A {
class Inner
fun foo(i: Inner): Inner = Inner()
}
class B: A()
// A and A$Inner both need an inner class attribute for the relationship. B does not.
// 2 INNERCLASS A\$Inner A Inner