Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.13
-
None
-
None
Description
In a Spock test case, I am trying to merge the e-mail addresses for two test users, where emails is of declared type java.util.Set:
methodCall([*BOB.emails, *BRAD.emails])
I expected the spread to inline the values, but instead I get
java.lang.IllegalArgumentException: cannot spread the type java.util.LinkedHashSet with value [bob@corp.test]