Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Consider the following:
@groovy.transform.TypeChecked void test() { List<Integer> list = [].withDefault { 0 } // Cannot assign ListWithDefault<? extends Object> to List<Integer> Map<String,Integer> map = [:].withDefault { 1 } // Cannot assign Map<Object, ? extends Object> to Map<String, Integer> }
Attachments
Issue Links
- causes
-
GROOVY-11057 STC Generic type matching failure
-
- Closed
-
-
GROOVY-11080 Static type checking regression with implicit generics of inline maps
-
- Closed
-
- is related to
-
GROOVY-10651 STC: closure parameter type inference for raw type that is iterable over type parameter
-
- Closed
-