forked from JavaTX/JavaCompilerCore
18 lines
305 B
Plaintext
18 lines
305 B
Plaintext
|
import java.lang.Object;
|
||
|
import java.util.Vector;
|
||
|
|
||
|
class CaptureConversion {
|
||
|
|
||
|
<X> void assign(Vector<X> v1, Vector<X> v2) {
|
||
|
v1 = v2;
|
||
|
}
|
||
|
|
||
|
void main() {
|
||
|
Vector<?> v1;
|
||
|
v1 = new Vector<Object>();
|
||
|
Vector<? extends Object> v2;
|
||
|
v2 = new Vector<Object>();
|
||
|
v1 = v2;
|
||
|
assign(v1, v2);
|
||
|
}
|
||
|
}
|