Details
-
Wish
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0
-
None
-
Patch
Description
Right now we can do this sort of thing to create a Set...
def mySet = [1, 2, 2, 4] as Set
It would be nice to support SortedSet in the same way...
def mySortedSet = [1, 2, 2, 4] as SortedSet
I have attached a patch that I think gets this done. I am not sure if there are already tests somewhere that cover the as operator. My test method is in CastTest.groovy but of course could be dropped just about anywhere.