Refactor: Pass buitlins into IntegerValueTypeConstant and IntegerValueTypeConstructor

This commit is contained in:
Pavel V. Talanov
2015-07-23 18:38:26 +03:00
parent a1a38e2eba
commit 273e69c02c
4 changed files with 14 additions and 9 deletions
@@ -680,7 +680,7 @@ private class ConstantExpressionEvaluatorVisitor(
expectedType: JetType
): CompileTimeConstant<*>? {
if (TypeUtils.noExpectedType(expectedType) || expectedType.isError()) {
return IntegerValueTypeConstant(value, parameters)
return IntegerValueTypeConstant(value, constantExpressionEvaluator.builtIns, parameters)
}
val integerValue = factory.createIntegerConstantValue(value, expectedType)
if (integerValue != null) {