7c3cc1d5c1
* [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.
14 lines
254 B
Kotlin
Vendored
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
|