mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Fix test-generation when a type variable's bound is itself a type variable
For example, class G<A, B extends A>
This commit is contained in:
@@ -93,7 +93,7 @@ RefType getRootType(RefType t) {
|
||||
*/
|
||||
RefType replaceTypeVariable(RefType t) {
|
||||
if t instanceof TypeVariable
|
||||
then result = t.(TypeVariable).getFirstUpperBoundType()
|
||||
then result = replaceTypeVariable(t.(TypeVariable).getFirstUpperBoundType())
|
||||
else result = t
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user