Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
Description
Following code:
@groovy.transform.TypeChecked def test() { def bar = 1 List<String> list = ["foo", "$bar" ] }
Produces
[Static type checking] - Incompatible generic argument types. Cannot assign java.util.List <java.io.Serializable> to: java.util.List <String> at line: 5, column: 5
Attachments
Issue Links
- is related to
-
GROOVY-5908 Cannot assign groovy.lang.Closure <java.util.List> to: groovy.lang.Closure <List>
- Closed