Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.5
-
None
Description
class GC { void setStrings(List<String> ss) {} } @groovy.transform.CompileStatic void usage(GC gc) { gc.strings = Collections.emptyList() }
[Static type checking] - Cannot assign value of type java.util.List <T extends java.lang.Object> to variable of type java.util.List <String> at line: 7, column: 5
Attachments
Issue Links
- relates to
-
GROOVY-9734 Generic is not inferred from context
- Closed