Handle specially only constructors of the class being lowered.
This commit is contained in:
+1
-1
@@ -99,7 +99,7 @@ internal class InnerClassLowering(val context: Context) : ClassLoweringPass {
|
|||||||
|
|
||||||
var irThis: IrExpression
|
var irThis: IrExpression
|
||||||
var innerClass: ClassDescriptor
|
var innerClass: ClassDescriptor
|
||||||
if (constructorDescriptor == null) {
|
if (constructorDescriptor == null || constructorDescriptor.constructedClass != classDescriptor) {
|
||||||
innerClass = classDescriptor
|
innerClass = classDescriptor
|
||||||
irThis = IrGetValueImpl(startOffset, endOffset, classDescriptor.thisAsReceiverParameter, origin)
|
irThis = IrGetValueImpl(startOffset, endOffset, classDescriptor.thisAsReceiverParameter, origin)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user