diff --git a/compiler/backend/src/org/jetbrains/jet/codegen/binding/CodegenAnnotatingVisitor.java b/compiler/backend/src/org/jetbrains/jet/codegen/binding/CodegenAnnotatingVisitor.java index e6e07330b09..f66157d7303 100644 --- a/compiler/backend/src/org/jetbrains/jet/codegen/binding/CodegenAnnotatingVisitor.java +++ b/compiler/backend/src/org/jetbrains/jet/codegen/binding/CodegenAnnotatingVisitor.java @@ -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);