Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/mostSpecific/IDEA121884.java
Anna Kozlova b89dc394cc testdata for IDEA-121884
(cherry picked from commit 985e902bb5edb3c913d0394492494ed115e545b4)
2014-03-12 10:19:22 +01:00

17 lines
338 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(String[] args) {
caller( (int n) -> { System.out.println(" " + n); } );
}
}