mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
additional testdata for nested lambda inference
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import java.util.function.*;
|
||||
class A {
|
||||
<T extends String> void foo(Function<A, T> f){}
|
||||
|
||||
static <O> Object bar(Object o) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static <K> A bar(A a) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static <L> L boo(Supplier<L> s) {
|
||||
return null;
|
||||
}
|
||||
|
||||
<P> P baz() {
|
||||
return null;
|
||||
}
|
||||
|
||||
{
|
||||
foo(a -> bar(a).boo(() -> baz()));
|
||||
}
|
||||
}
|
||||
@@ -63,6 +63,10 @@ public class Java8ExpressionsCheckTest extends LightDaemonAnalyzerTestCase {
|
||||
doTestCachedUnresolved();
|
||||
}
|
||||
|
||||
public void testMethodOverloadsInsideLambdaHierarchy() throws Exception {
|
||||
doTestAllMethodCallExpressions();
|
||||
}
|
||||
|
||||
private void doTestCachedUnresolved() {
|
||||
configureByFile(BASE_PATH + "/" + getTestName(false) + ".java");
|
||||
PsiMethodCallExpression callExpression =
|
||||
|
||||
Reference in New Issue
Block a user