mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
lambda: inference from formal params fixed (IDEA-101176)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
class IDEA101176 {
|
||||
|
||||
static {
|
||||
foo((Integer i) -> i > 60);
|
||||
}
|
||||
|
||||
static <T> void foo(Predicate<? super T> p){}
|
||||
interface Predicate<T> {
|
||||
public boolean test(T t);
|
||||
}
|
||||
}
|
||||
@@ -45,6 +45,10 @@ public class LambdaParamsTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testInferFromFormal() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() throws Exception {
|
||||
doTest(BASE_PATH + "/" + getTestName(false) + ".java", false, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user