From 82128800c523daafccff855556ed6f3f44eba1d2 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Tue, 26 Mar 2019 17:24:46 +0300 Subject: [PATCH] IR: assertion in IrCallImpl init NB it uses descriptor to determine if we try to call constructor using IrCall. --- .../src/org/jetbrains/kotlin/ir/expressions/impl/IrCallImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/impl/IrCallImpl.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/impl/IrCallImpl.kt index 3573fbf7f64..98b94c19f25 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/impl/IrCallImpl.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/impl/IrCallImpl.kt @@ -47,7 +47,7 @@ class IrCallImpl( IrCall { init { - if (symbol is IrClassSymbol) { + if (descriptor is ConstructorDescriptor) { throw AssertionError("Should be IrConstructorCall: $descriptor") } }