Don't assert that class is found in BindingContext

This isn't true when light classes are generated, according to other such
checks in the same file

 #KT-4276 Fixed
This commit is contained in:
Alexander Udalov
2013-12-03 21:16:01 +04:00
parent 4ecd1a8f68
commit 028274b934
@@ -288,7 +288,8 @@ class CodegenAnnotatingVisitor extends JetVisitorVoid {
@Override
public void visitDelegationToSuperCallSpecifier(@NotNull JetDelegatorToSuperCall call) {
ClassDescriptorWithState state = peekFromStack(classStack);
assert state != null : "Class descriptor should be recorded before " + call + " processing";
// working around a problem with shallow analysis
if (state == null) return;
state.setDelegationToSuperCall(true);
super.visitDelegationToSuperCallSpecifier(call);
state.setDelegationToSuperCall(false);