Main.java:16: error: no suitable method found for add(Object)
test.add(new Object());
^
method Collection.add(CAP#1) is not applicable
(argument mismatch; Object cannot be converted to CAP#1)
method List.add(CAP#1) is not applicable
(argument mismatch; Object cannot be converted to CAP#1)
where CAP#1 is a fresh type-variable:
CAP#1 extends Object super: Number from capture of ? super Number
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error