Added message for assertion

This commit is contained in:
Michael Bogdanov
2015-02-04 16:16:00 +03:00
parent ea2f9e91e9
commit bc2261ea3b
@@ -1620,7 +1620,7 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
private void putLocalVariableIntoFrameMap(@NotNull JetVariableDeclaration statement) {
VariableDescriptor variableDescriptor = bindingContext.get(VARIABLE, statement);
assert variableDescriptor != null;
assert variableDescriptor != null : "Couldn't find variable declaration in binding context " + statement.getText();
Type type = getVariableType(variableDescriptor);
int index = myFrameMap.enter(variableDescriptor, type);