Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/mostSpecific/IDEA121884.java
Mikhail Pyltsin 128454480a [java-highlighting] WIP IDEA-372969 Support JEP 512: Compact Source Files and Instance Main Methods
- update language levels partially
- fix tests

GitOrigin-RevId: 8d7b599772eda8dfd999bee9f816ec2609be4adb
2025-06-24 23:04:26 +00:00

17 lines
325 B
Java

class Main {
interface MyCall {
void call(int n);
}
interface MyCallRet {
int call(int n);
}
public static void caller(MyCall c) {
c.call(2);
}
public static void caller(MyCallRet c) {
c.call(3);
}
public static void main() {
caller( (int n) -> { System.out.println(" " + n); } );
}
}