Main.java:12: error: no suitable method found for add(T#1)
list.add(value);
^
method List.add(int,T#2) is not applicable
(actual and formal argument lists differ in length)
method List.add(T#2) is not applicable
(actual argument T#1 cannot be converted to T#2 by method invocation conversion)
where T#1,T#2 are type-variables:
T#1 extends Object declared in method <T#1>visit(T#1)
T#2 extends Object declared in class Test.MyVisitor
1 error