Handle specially only constructors of the class being lowered.

This commit is contained in:
Igor Chevdar
2017-03-07 11:52:11 +03:00
parent d49c497e02
commit 48b0754a7b
@@ -99,7 +99,7 @@ internal class InnerClassLowering(val context: Context) : ClassLoweringPass {
var irThis: IrExpression
var innerClass: ClassDescriptor
if (constructorDescriptor == null) {
if (constructorDescriptor == null || constructorDescriptor.constructedClass != classDescriptor) {
innerClass = classDescriptor
irThis = IrGetValueImpl(startOffset, endOffset, classDescriptor.thisAsReceiverParameter, origin)
} else {