blob: 1e5e3755453ef86eb8671924a5848dbe50e234f7 [file] [log] [blame]
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;}
}