Fix constructor call checker

Forget to check constructor for availability of compile time annotation
This commit is contained in:
Ivan Kylchik
2020-09-14 17:43:05 +03:00
committed by TeamCityServer
parent 41ea1525d1
commit 749200d518
@@ -38,7 +38,7 @@ class IrCompileTimeChecker(
private fun visitConstructor(expression: IrFunctionAccessExpression): Boolean {
return when {
!visitValueParameters(expression, null) -> false
!visitValueParameters(expression, null) || !mode.canEvaluateFunction(expression.symbol.owner) -> false
else -> if (mode.canEvaluateBody(expression.symbol.owner)) expression.symbol.owner.body?.accept(this, null) != false else true
}
}