Files
anna bd64f4044b testdata for IDEA-116252
(cherry picked from commit 263652d7e97e6caab5dce7fb95a37d14ff34de4b)
2013-11-25 16:47:39 +01:00

20 lines
380 B
Java

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 -> "");
}
}