Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.7, 2.4.0-beta-3
-
None
Description
@groovy.transform.CompileStatic
void test() {
List<Number> list = [1]
}
C:\Users\Yu\Desktop\test.groovy: 3: [Static type checking] - Incompatible generic argument types. Cannot assign java.util.List <java.lang.Integer> to: java.util.List <Number> @ line 3, column 25. List<Number> list = [1] ^