Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-rc-2
-
None
Description
The following code is valid, but it reports some compilation errors:
@groovy.transform.CompileStatic class Test { List getList() { null } }
1 compilation error:
[Static type checking] - Cannot return value of type java.lang.Object on method returning type java.util.List -> java.util.List <E extends java.lang.Object -> java.lang.Object>
at line: 5, column: 5