Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7.2
-
None
-
None
Description
In this example, the last line fails but shouldn't:
def m = [:].withDefault {k -> k * 2} m[1] = 3 assert m[1] == 3 assert m[2] == 4 assert [1:3, 2:4] == m assert m == [1:3, 2:4]