Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-2
-
Fix Version/s: 2.0-beta-3
-
Component/s: Static Type Checker
-
Labels:None
-
Number of attachments :
Description
The following code fails:
Map<String,Integer> foo = new HashMap<String,Integer>() foo.put('foo', 1)
because the type checker aligns the V placeholder in <K,V> with String instead of Integer.