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
24 lines
585 B
Plaintext
Vendored
24 lines
585 B
Plaintext
Vendored
FILE: objectDerivedFromInnerClass.kt
|
|
public final class Outer : R|kotlin/Any| {
|
|
public constructor(): R|Outer| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public final inner class Inner : R|kotlin/Any| {
|
|
public Outer.constructor(): R|Outer.Inner| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
public final fun test(): R|kotlin/Unit| {
|
|
lval x: R|<anonymous>| = object : R|Outer.Inner| {
|
|
private constructor(): R|<anonymous>| {
|
|
super<R|Outer.Inner|>()
|
|
}
|
|
|
|
}
|
|
|
|
}
|