null is valid compile time value
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user