testdata for IDEA-149224

This commit is contained in:
Anna Kozlova
2015-12-15 21:40:02 +01:00
parent 7d34d5ad36
commit aa70efc9a4
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
import java.util.concurrent.Callable;
class Test {
public void test() {
Foo<String> f = new Foo<>(() -> "this doesn't compile");
}
public class Foo<T> {
public Foo(Callable<T> supplier) {
}
public Foo(T value) {
}
}
}

View File

@@ -248,6 +248,10 @@ public class NewLambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
doTest();
}
public void testIDEA149224() throws Exception {
doTest();
}
private void doTest() {
doTest(false);
}
@@ -269,4 +273,4 @@ public class NewLambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
}
return suite;
}*/
}
}