IR: assertion in IrCallImpl init
NB it uses descriptor to determine if we try to call constructor using IrCall.
This commit is contained in:
@@ -47,7 +47,7 @@ class IrCallImpl(
|
|||||||
IrCall {
|
IrCall {
|
||||||
|
|
||||||
init {
|
init {
|
||||||
if (symbol is IrClassSymbol) {
|
if (descriptor is ConstructorDescriptor) {
|
||||||
throw AssertionError("Should be IrConstructorCall: $descriptor")
|
throw AssertionError("Should be IrConstructorCall: $descriptor")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user