mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
testdata for IDEA-24496
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
||||
class GenericsError {
|
||||
|
||||
public <T> List<List<T>> method(List<T> list) {
|
||||
List<List<T>> retVal = new ArrayList<List<T>>();
|
||||
retVal.add(list);
|
||||
return retVal;
|
||||
}
|
||||
|
||||
public List<List<?>> otherMethod() {
|
||||
List<?> list = null;
|
||||
<error descr="Incompatible types. Found: 'java.util.List<java.util.List<capture<?>>>', required: 'java.util.List<java.util.List<?>>'">List<List<?>> result = method(list);</error>
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user