Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Consider the following:
void test(List<String> list) { } List<String> strings = ['y','z'] test(['x', *strings])
STC infers wring type for "*strings" which prevents the use of spread for list literals.
Attachments
Issue Links
- is related to
-
GROOVY-10597 STC: support spread arguments for varargs
- Closed
- relates to
-
GROOVY-11060 SC internal error when spreading inside list literal
- Closed