Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-beta-3
-
Component/s: Static Type Checker
-
Labels:None
-
Number of attachments :
Description
The static type checker complains on the following class:
@groovy.transform.TypeChecked
class Container<T> {
private T initialValue
Container(T initialValue) { this.initialValue = initialValue }
T get() { initialValue }
}
With the message:
[Static type checking] - Incompatible generic argument types. Cannot assign java.lang.Object <T> to: java.lang.Object <T> at line: 4, column: 33
see also lines 85-88 of org.codehaus.groovy.ast.GenericsType which might be fixed by a solution to this problem - running stub generator tests should verify whether fixed after removing lines 85-88