null is valid compile time value

This commit is contained in:
Maxim Shafirov
2011-11-14 20:56:36 +04:00
parent 1befef2a2f
commit f3c2a48f92
@@ -62,8 +62,7 @@ public class PropertyCodegen {
if (initializer != null) { if (initializer != null) {
if (initializer instanceof JetConstantExpression) { if (initializer instanceof JetConstantExpression) {
CompileTimeConstant<?> compileTimeValue = state.getBindingContext().get(BindingContext.COMPILE_TIME_VALUE, initializer); CompileTimeConstant<?> compileTimeValue = state.getBindingContext().get(BindingContext.COMPILE_TIME_VALUE, initializer);
assert compileTimeValue != null; value = compileTimeValue != null ? compileTimeValue.getValue() : null;
value = compileTimeValue.getValue();
} }
} }
final int modifiers; final int modifiers;