Java: sensibly parse non-sealed modifier on local class and provide better error message (IDEA-342500)

GitOrigin-RevId: 574a5d9c31e5823127227622adaefaaea224b247
This commit is contained in:
Bas Leijdekkers
2024-01-09 14:59:15 +01:00
committed by intellij-monorepo-bot
parent 98d3ab7fec
commit 3e0ed000da
11 changed files with 190 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.java.parser.declarationParsing;
import com.intellij.java.parser.AbstractBasicJavaParsingTestCase;
@@ -115,6 +115,8 @@ public abstract class AbstractBasicClassParsingTest extends AbstractBasicJavaPar
doTest(true);
}
public void testLocalSealedClass() { doTest(true); }
public void testProvidesList() {
doTest(true);
}