Fix constructor call checker
Forget to check constructor for availability of compile time annotation
This commit is contained in:
committed by
TeamCityServer
parent
41ea1525d1
commit
749200d518
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user