forked from JavaTX/JavaCompilerCore
9606dc7b26
modified: src/test/java/AllgemeinTest.java Campture Conversion Test in Allgemeintest eingefuegt
18 lines
305 B
Java
18 lines
305 B
Java
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);
|
|
}
|
|
} |