blob: b1d18904a6fb3029561c3481fae06843bfcf41e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class Main {
void foo(List<? extends Number> list) {
list.forEach(new <caret>);
}
}
class List<T> {
void forEach(Consumer<? super T> consumer);
}
interface Consumer<T> { void consume(T t); }
|