IR: assertion in IrCallImpl init

NB it uses descriptor to determine if we try to call constructor using
IrCall.
This commit is contained in:
Dmitry Petrov
2019-03-26 17:24:46 +03:00
parent 11eea6e86a
commit 82128800c5
@@ -47,7 +47,7 @@ class IrCallImpl(
IrCall {
init {
if (symbol is IrClassSymbol) {
if (descriptor is ConstructorDescriptor) {
throw AssertionError("Should be IrConstructorCall: $descriptor")
}
}