mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 17:51:09 +07:00
17 lines
494 B
Java
17 lines
494 B
Java
import java.util.*;
|
|
|
|
class Test<T>
|
|
{
|
|
List<Collection<T>> getList ()
|
|
{
|
|
return new ArrayList<Collection<T>> ();
|
|
}
|
|
|
|
public void test1 (Test<T> arg)
|
|
{
|
|
List<Collection<T>> result = arg.getList ();
|
|
result.add <error descr="'add(java.util.Collection<T>)' in 'java.util.List' cannot be applied to '(java.util.HashMap<java.lang.Integer,java.lang.Integer>)'">(new HashMap<Integer, Integer> ())</error>;
|
|
}
|
|
|
|
}
|