blob: b1d18904a6fb3029561c3481fae06843bfcf41e7 [file] [log] [blame]
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); }