testdata for IDEA-121884

(cherry picked from commit 985e902bb5edb3c913d0394492494ed115e545b4)
This commit is contained in:
Anna Kozlova
2014-03-11 17:07:02 +01:00
parent 7d747c8cef
commit b89dc394cc
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
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); } );
}
}

View File

@@ -55,6 +55,10 @@ public class MostSpecificResolutionTest extends LightDaemonAnalyzerTestCase {
doTest();
}
public void testIDEA121884() throws Exception {
doTest();
}
private void doTest() {
doTest(true);
}