2015-04-22 19:40:22 +00:00
|
|
|
import de.dhbwstuttgart.typeinference.Menge;
|
2013-10-18 11:33:46 +00:00
|
|
|
|
|
|
|
class WCTest{
|
|
|
|
|
|
|
|
void test()
|
|
|
|
{
|
2015-04-22 19:40:22 +00:00
|
|
|
Menge<Menge<? extends Sub1>> v1 = new Menge<Menge<Sub2>>();
|
2013-10-18 11:33:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
class Sub1 {}
|
|
|
|
|
|
|
|
class Sub2 extends Sub1 {}
|
|
|
|
|
|
|
|
class Sub3 extends Sub2 {}
|
|
|
|
|
|
|
|
class N<x> {}
|
|
|
|
|
|
|
|
class Test<x> extends N<N<? extends x>> {}
|