mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test data fixed
This commit is contained in:
+1
-1
@@ -9,6 +9,6 @@ class Test2 {
|
||||
static <T> I<T> bar(I<T> i){return i;}
|
||||
|
||||
{
|
||||
bar((List<String> list) -> null);
|
||||
bar(list -> null);
|
||||
}
|
||||
}
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
class Test2 {
|
||||
class Y<T>{}
|
||||
|
||||
interface I<X> {
|
||||
X foo(Y<X> list);
|
||||
}
|
||||
|
||||
static <T> I<T> bar(I<T> i){return i;}
|
||||
|
||||
{
|
||||
bar(new I() {
|
||||
@Override
|
||||
public Object foo(Y x) {
|
||||
<selection>return x;</selection>
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -44,7 +44,7 @@ public class ReplaceLambdaWithAnonymousIntentionTest extends IPPTestCase {
|
||||
}
|
||||
|
||||
public void testCyclicInference() {
|
||||
assertIntentionNotAvailable();
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testNoFunctionalInterfaceFound() {
|
||||
|
||||
Reference in New Issue
Block a user