test data for IDEA-72912

This commit is contained in:
anna
2012-04-14 19:14:01 +02:00
parent f073b37e46
commit 9da3e3f81d
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,16 @@
import java.util.*;
public 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>;
}
}