mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnose EA-37565 - assert: GroovyExpectedTypesProvider$MyCalculator.visitCaseLabel
This commit is contained in:
+1
-1
@@ -428,7 +428,7 @@ public class GroovyExpectedTypesProvider {
|
||||
@Override
|
||||
public void visitCaseLabel(GrCaseLabel caseLabel) {
|
||||
final PsiElement parent = caseLabel.getParent().getParent();
|
||||
assert parent instanceof GrSwitchStatement;
|
||||
assert parent instanceof GrSwitchStatement : parent + " of class " + parent.getClass();
|
||||
final GrExpression condition = ((GrSwitchStatement)parent).getCondition();
|
||||
if (condition == null) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user