[IR] Unconditionally allow to interpret IrConst
We can interpret all const elements. It wasn't true on early prototype phase because of some problems with unsigned numbers, but right now it is correct to assume that all const are valid. #KT-58923
This commit is contained in:
-4
@@ -114,10 +114,6 @@ class IrInterpreterCommonChecker : IrInterpreterChecker {
|
||||
}
|
||||
|
||||
override fun visitConst(expression: IrConst<*>, data: IrInterpreterCheckerData): Boolean {
|
||||
if (expression.type.getUnsignedType() != null) {
|
||||
val constructor = expression.type.classOrNull?.owner?.constructors?.singleOrNull() ?: return false
|
||||
return data.mode.canEvaluateFunction(constructor)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user