Skip to content

Commit 35c3943

Browse files
committed
GROOVY-10310: STC: retain wildcard flag during diamond generics transfer
3_0_X backport
1 parent 0235c57 commit 35c3943

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java

+1
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,7 @@ private void adjustGenerics(final ClassNode source, final ClassNode target) {
11201120
GenericsType gt = genericsTypes[i];
11211121
genericsTypes[i] = new GenericsType(gt.getType(),
11221122
gt.getUpperBounds(), gt.getLowerBound());
1123+
genericsTypes[i].setWildcard(gt.isWildcard()); // GROOVY-10310
11231124
}
11241125
}
11251126
target.setGenericsTypes(genericsTypes);

0 commit comments

Comments
 (0)