JavaCompilerCore/examples/hoti/GenericMethod.jav

8 lines
119 B
Plaintext
Raw Normal View History

2013-10-18 11:33:46 +00:00
class Test {
<E extends Number> addElement2(E elem){
return(elem);
}
test(x){
x.addElement2(new Number());
}
}