[JS IR BE] Fix types of in secondary ctor lowering
Type of IrDelegatingConstructorCall is 'kotlin.Unit'
This commit is contained in:
+4
-2
@@ -222,9 +222,11 @@ private class CallsiteRedirectionTransformer(context: JsIrBackendContext) : IrEl
|
|||||||
|
|
||||||
val readThis = expression.run {
|
val readThis = expression.run {
|
||||||
if (data!! is IrConstructor) {
|
if (data!! is IrConstructor) {
|
||||||
IrGetValueImpl(startOffset, endOffset, type, klass.thisReceiver!!.symbol)
|
val thisReceiver = klass.thisReceiver!!
|
||||||
|
IrGetValueImpl(startOffset, endOffset, thisReceiver.type, thisReceiver.symbol)
|
||||||
} else {
|
} else {
|
||||||
IrGetValueImpl(startOffset, endOffset, type, data.valueParameters.last().symbol)
|
val lastValueParameter = data.valueParameters.last()
|
||||||
|
IrGetValueImpl(startOffset, endOffset, lastValueParameter.type, lastValueParameter.symbol)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user