mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
testdata for IDEA-149224
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user