mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
testdata for IDEA-116252
(cherry picked from commit 263652d7e97e6caab5dce7fb95a37d14ff34de4b)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
class Tmp
|
||||
{
|
||||
interface Function<T, R> {
|
||||
|
||||
R apply(T t);
|
||||
}
|
||||
interface Foo<T>
|
||||
{
|
||||
<R> Foo<R> map1(Function<T,R> f);
|
||||
|
||||
<R> Foo<R> map2(Function<? super T, ? extends R> f);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
Foo<Object> x = null;
|
||||
Foo<Object> y1 = x.map1(i -> "");
|
||||
Foo<Object> y2 = x.map2(i -> "");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user