9b9c51bc8d
1. Inner class constructor should have its outer class as a dispatch receiver, since it is necessary for the call. Before it was null 2. Substituted inner class constructor should have its original dispatch receiver type with the proper substitution. Before it was set to the class itself (since the class was usually passed as a new dispatch receiver) Also, modify FIR renderer, so it properly renders the dispatch receiver of the constructors
37 lines
1004 B
Plaintext
Vendored
37 lines
1004 B
Plaintext
Vendored
FILE: innerWithSuperCompanion.kt
|
|
public open class Base : R|kotlin/Any| {
|
|
public constructor(): R|Base| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public final companion object Companion : R|kotlin/Any| {
|
|
private constructor(): R|Base.Companion| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public final val some: R|kotlin/Int| = Int(0)
|
|
public get(): R|kotlin/Int|
|
|
|
|
}
|
|
|
|
}
|
|
public final class Outer : R|kotlin/Any| {
|
|
public constructor(): R|Outer| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public final val codegen: R|kotlin/String| = String()
|
|
public get(): R|kotlin/String|
|
|
|
|
public final inner class Inner : R|Base| {
|
|
public Outer.constructor(): R|Outer.Inner| {
|
|
super<R|Base|>()
|
|
}
|
|
|
|
public final val c: R|kotlin/String| = this@R|/Outer|.R|/Outer.codegen|
|
|
public get(): R|kotlin/String|
|
|
|
|
}
|
|
|
|
}
|