forked from JavaTX/JavaCompilerCore
In Unify.greater1 alle Bounds einer BGTV als groesserer Typ hinzugefuegt
This commit is contained in:
parent
de4cfa2656
commit
56f69727eb
@ -3014,6 +3014,12 @@ tempKlasse.get_Superclass_Name() ); System.out.println( "P. S.:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(T instanceof BoundedGenericTypeVar) //PL 15-02-03 angefuegt da BGTV Kleiner als alle seine Bounds ist
|
||||||
|
{
|
||||||
|
BoundedGenericTypeVar bgtv = (BoundedGenericTypeVar)T;
|
||||||
|
Vector<Type> types = bgtv.getBounds();
|
||||||
|
retVec = types.stream().map(ty -> greater(ty, fc_tto)).reduce(new Vector<Type>(), (a,b) -> { a.addAll(b); return a;});
|
||||||
|
}
|
||||||
return retVec;
|
return retVec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ class GenericTest{
|
|||||||
<A extends Integer> A method(){
|
<A extends Integer> A method(){
|
||||||
A x;
|
A x;
|
||||||
Integer integer;
|
Integer integer;
|
||||||
x = integer;
|
integer = x;
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user