mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 1e1b77009dc78de49c7cc5c44d4704937397bb23
17 lines
495 B
Java
17 lines
495 B
Java
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;
|
|
List<List<?>> result = <error descr="Incompatible types. Found: 'java.util.List<java.util.List<capture<?>>>', required: 'java.util.List<java.util.List<?>>'">method</error>(list);
|
|
return result;
|
|
}
|
|
} |