[FIR] Set thisReceiver when generating IrClass for unknown classes

^KT-60942 Fixed
This commit is contained in:
Brian Norman
2023-10-31 12:07:22 -05:00
committed by Space Team
parent 2d7cadc0ab
commit 5676759287
@@ -497,7 +497,14 @@ class Fir2IrClassifiersGenerator(val components: Fir2IrComponents) : Fir2IrCompo
kind = ClassKind.CLASS,
modality = Modality.FINAL,
).apply {
parent = irParent
setParent(irParent)
addDeclarationToParent(this, irParent)
typeParameters = emptyList()
thisReceiver = declareThisReceiverParameter(
thisType = IrSimpleTypeImpl(symbol, false, emptyList(), emptyList()),
thisOrigin = IrDeclarationOrigin.INSTANCE_RECEIVER,
)
superTypes = listOf(irBuiltIns.anyType)
}
}
}