diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newLambda/IDEA149224.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newLambda/IDEA149224.java new file mode 100644 index 000000000000..72f86973b2d6 --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newLambda/IDEA149224.java @@ -0,0 +1,15 @@ +import java.util.concurrent.Callable; +class Test { + + public void test() { + Foo f = new Foo<>(() -> "this doesn't compile"); + } + + public class Foo { + public Foo(Callable supplier) { + } + + public Foo(T value) { + } + } +} \ No newline at end of file diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/lambda/NewLambdaHighlightingTest.java b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/lambda/NewLambdaHighlightingTest.java index bd3d81749d03..670ebfd1f190 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/lambda/NewLambdaHighlightingTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/lambda/NewLambdaHighlightingTest.java @@ -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; }*/ -} +} \ No newline at end of file