[FIR] Fix dispatch receivers on inner classes' constructors
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
This commit is contained in:
Vendored
+1
-1
@@ -25,7 +25,7 @@ FILE: K3.kt
|
||||
}
|
||||
|
||||
public open inner class NestedInSuperClass<T> : R|kotlin/Any| {
|
||||
public constructor(): R|SuperClass.NestedInSuperClass<T>| {
|
||||
public SuperClass<T>.constructor(): R|SuperClass.NestedInSuperClass<T>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@ FILE: K1.kt
|
||||
}
|
||||
|
||||
public open inner class KotlinInner : R|kotlin/Any| {
|
||||
public constructor(): R|KotlinOuter.KotlinInner| {
|
||||
public KotlinOuter.constructor(): R|KotlinOuter.KotlinInner| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ FILE: K2.kt
|
||||
}
|
||||
|
||||
public final inner class K3 : R|J1.J2| {
|
||||
public constructor(): R|K2.K3| {
|
||||
public K2.constructor(): R|K2.K3| {
|
||||
this@R|/K2|.super<R|J1.J2|>()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user