[java-highlighting] WIP IDEA-372969 Support JEP 512: Compact Source Files and Instance Main Methods

- update language levels partially
- fix tests

GitOrigin-RevId: 8d7b599772eda8dfd999bee9f816ec2609be4adb
This commit is contained in:
Mikhail Pyltsin
2025-06-20 22:02:29 +02:00
committed by intellij-monorepo-bot
parent 19096c38a1
commit 128454480a
41 changed files with 121 additions and 67 deletions

View File

@@ -5,7 +5,7 @@ interface Func<TIn, TOut>{
class Main {
public static void main(final String[] args) {
public static void main() {
Func<Integer, String> func = Integer::<error descr="Reference to 'toString' is ambiguous, both 'toString()' and 'toString(int)' match">toString</error>;
System.out.println(func.run(6));
}