JavaCompilerCore/examples/luar/WCTest7.jav
2013-10-18 13:33:46 +02:00

120 lines
5.5 KiB
Java
Executable File

/* VecPair<a,b> Vector<? extends Pair<a,c>> */
/* Funktioniert !!!
*/
/* VecPair<a,b> Vector<Pair<a,c>> */
/* Funktioniert !!!
*/
/* VecPair<Number,b> Vector<Pair<a,c>> */
/* Funktioniert !!! */
/* Vector<VecPair<? extends Number, Integer>> Vector<a> */
/* Funktioniert !!! nochmals ueberpruefen 07-07-29 */
/* VecPair<? extends Number, Integer> Vector<Pair<? extends Number,Integer>> */
/* Funktioniert kein Unifier!!! */
/* VecPair<? extends Number, Integer> Vector<? extends Pair<? extends Number,Integer>> */
/* Funktioniert!!! */
/* Vector<b> Vector<? extends Vector<Pair<a,c>>> */
/* funktioniert */
/* Erg.:
[[(TPH a = TPH A), (TPH c = Integer), (TPH b = ? extends VecPair< TPH A, TPH B >)],
[(TPH a = TPH A), (TPH c = Integer), (TPH b = VecPair< TPH A, TPH B >)],
[(TPH b = ? extends Vector< Pair< TPH a, TPH c > >)],
[(TPH b = Vector< Pair< TPH a, TPH c > >)]]
*/
/* Vector<b> Vector<? extends Vector<Pair<Number,c>>> */
/* Erg:
[[(TPH c = Integer), (TPH b = VecPair< Number, TPH B >)],
[(TPH c = Integer), (TPH b = ? extends VecPair< Number, TPH B >)],
[(TPH b = Vector< Pair< Number, TPH c > >)],
[(TPH b = ? extends Vector< Pair< Number, TPH c > >)]]
*/
/* Vector<b> Vector<? extends Vector<a>> */
/* Erg.:
[[(TPH a = Pair< TPH A, Integer >), (TPH b = ? extends VecPair< TPH A, TPH B >)],
[(TPH a = Pair< TPH A, Integer >), (TPH b = VecPair< TPH A, TPH B >)],
[(TPH a = ? extends Pair< TPH A, Integer >), (TPH b = ? extends VecPair< TPH A, TPH C >)],
[(TPH a = ? extends Pair< TPH A, Integer >), (TPH b = VecPair< TPH A, TPH C >)],
[(TPH a = ? extends Pair< TPH A, ? extends Integer >), (TPH b = ? extends VecPair< TPH A, TPH D >)],
[(TPH a = ? extends Pair< TPH A, ? extends Integer >), (TPH b = VecPair< TPH A, TPH D >)],
[(TPH a = ? extends Pair< TPH A, ? extends Number >), (TPH b = ? extends VecPair< TPH A, TPH E >)],
[(TPH a = ? extends Pair< TPH A, ? extends Number >), (TPH b = VecPair< TPH A, TPH E >)],
[(TPH a = ? extends Pair< TPH A, ? extends Object >), (TPH b = ? extends VecPair< TPH A, TPH F >)],
[(TPH a = ? extends Pair< TPH A, ? extends Object >), (TPH b = VecPair< TPH A, TPH F >)],
[(TPH a = ? extends Pair< TPH A, ? super Integer >), (TPH b = ? extends VecPair< TPH A, TPH G >)],
[(TPH a = ? extends Pair< TPH A, ? super Integer >), (TPH b = VecPair< TPH A, TPH G >)],
[(TPH a = ? extends Object), (TPH b = ? extends VecPair< TPH A, TPH H >)],
[(TPH a = ? extends Object), (TPH b = VecPair< TPH A, TPH H >)],
[(TPH a = ? super Pair< TPH A, Integer >), (TPH b = ? extends VecPair< TPH A, TPH I >)],
[(TPH a = ? super Pair< TPH A, Integer >), (TPH b = VecPair< TPH A, TPH I >)],
[(TPH b = ? extends Vector< TPH a >)],
[(TPH b = Vector< TPH a >)]]
*/
/* Vector<VecPair<Number,Integer>> Vector<? extends Vector<a>> */
/* funktioniert */
/* Erg.
[[(TPH a = Pair< Number, Integer >)],
[(TPH a = ? extends Pair< Number, Integer >)],
[(TPH a = ? extends Pair< Number, ? extends Integer >)],
[(TPH a = ? extends Pair< Number, ? extends Number >)],
[(TPH a = ? extends Pair< Number, ? extends Object >)],
[(TPH a = ? extends Pair< Number, ? super Integer >)],
[(TPH a = ? extends Pair< ? extends Number, Integer >)],
[(TPH a = ? extends Pair< ? extends Number, ? extends Integer >)],
[(TPH a = ? extends Pair< ? extends Number, ? extends Number >)],
[(TPH a = ? extends Pair< ? extends Number, ? extends Object >)],
[(TPH a = ? extends Pair< ? extends Number, ? super Integer >)],
[(TPH a = ? extends Pair< ? extends Object, Integer >)],
[(TPH a = ? extends Pair< ? extends Object, ? extends Integer >)],
[(TPH a = ? extends Pair< ? extends Object, ? extends Number >)],
[(TPH a = ? extends Pair< ? extends Object, ? extends Object >)],
[(TPH a = ? extends Pair< ? extends Object, ? super Integer >)],
[(TPH a = ? extends Pair< ? super Number, Integer >)],
[(TPH a = ? extends Pair< ? super Number, ? extends Integer >)],
[(TPH a = ? extends Pair< ? super Number, ? extends Number >)],
[(TPH a = ? extends Pair< ? super Number, ? extends Object >)],
[(TPH a = ? extends Pair< ? super Number, ? super Integer >)],
[(TPH a = ? extends Pair< ? super Integer, Integer >)],
[(TPH a = ? extends Pair< ? super Integer, ? extends Integer >)],
[(TPH a = ? extends Pair< ? super Integer, ? extends Number >)],
[(TPH a = ? extends Pair< ? super Integer, ? extends Object >)],
[(TPH a = ? extends Pair< ? super Integer, ? super Integer >)],
[(TPH a = ? extends Object)],
[(TPH a = ? super Pair< Number, Integer >)]]
*/
/* Vector<b> Vector<? extends Vector<? extends Pair<Number,c>>> */
/* Erg. stimmt
[[[(TPH c = Integer), (TPH b = ? extends VecPair< Number, TPH B >)],
[(TPH c = Integer), (TPH b = VecPair< Number, TPH B >)],
[(TPH c = ? extends Integer), (TPH b = ? extends VecPair< Number, TPH C >)],
[(TPH c = ? extends Integer), (TPH b = VecPair< Number, TPH C >)],
[(TPH c = ? extends Number), (TPH b = ? extends VecPair< Number, TPH D >)],
[(TPH c = ? extends Number), (TPH b = VecPair< Number, TPH D >)],
[(TPH c = ? extends Object), (TPH b = ? extends VecPair< Number, TPH E >)],
[(TPH c = ? extends Object), (TPH b = VecPair< Number, TPH E >)],
[(TPH c = ? super Integer), (TPH b = ? extends VecPair< Number, TPH F >)],
[(TPH c = ? super Integer), (TPH b = VecPair< Number, TPH F >)],
[(TPH b = ? extends Vector< ? extends Pair< Number, TPH c > >)],
[(TPH b = Vector< ? extends Pair< Number, TPH c > >)],
[(TPH b = ? extends Vector< Pair< Number, TPH c > >)],
[(TPH b = Vector< Pair< Number, TPH c > >)]]
*/
class Number {}
class Integer extends Number {}
class Vector<a> { }
class Pair<a,b> { }
class VecPair<a,b> extends Vector<Pair<a,Integer>> { }