[java-highlighting] IJ-CR-165049 IDEA-374019 Don't show error about 'main' method if there is an error with braces

- don't highlight if there is package statement
- skip duplicated nested class for implicit classes

GitOrigin-RevId: eadb287b7e52bfedd04340b8841597b9d6839ee5
This commit is contained in:
Mikhail Pyltsin
2025-06-09 13:42:30 +02:00
committed by intellij-monorepo-bot
parent ab4901834d
commit 708f2a6328
6 changed files with 28 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
<error descr="Implicitly declared class contains no 'main' method">public class SameNameInnerClass {
}
int a = 1;</error>