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:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user