blob: 1e5e3755453ef86eb8671924a5848dbe50e234f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import java.util.List;
import java.util.Set;
class Sample {
interface L<T> {
List<T> foo();
}
interface S<T> {
Set<T> foo();
}
{
bar(collect(foo())) ;
}
void bar(List<String> l){}
<T> Set<T> collect(L<T> l, int i){return null;}
<T1> List<T1> collect(S<T1> l){return null;}
<K> S<K> foo(){return null;}
}
|