JavaCompilerCore/examples/luar/WCTest8.jav

25 lines
475 B
Plaintext
Raw Permalink Normal View History

/* Subtype Menge<Pair<a,b>> OK */
2013-10-18 11:33:46 +00:00
/* Subtype Menge<? extends Pair<a,b>> */
2013-10-18 11:33:46 +00:00
/* Korrekt */
/* Menge<Subtype<Integer>> Menge<? extends Menge<? extends Pair<a,b>>> */
2013-10-18 11:33:46 +00:00
/* Super, FUNKTIONIERT!!! */
/* Menge<List<? super Integer>> Menge<? super Menge<a>> */
2013-10-18 11:33:46 +00:00
/* redureSup Test: FUNKTIONIERT!!! */
class Number {}
class Integer extends Number {}
class List<a> { }
class Menge<a> extends List<a> { }
2013-10-18 11:33:46 +00:00
class Pair<a,b> { }
class Subtype<a> extends Menge<Pair<a,Integer>> { }