Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-11067

Add support for spread elements in array initializer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • parser-antlr4
    • None

    Description

      Follow up from GROOVY-11060: `[a, *bees, c] as Type[]` is supported for dynamic and static groovy.  However, `new Type[]{a, *bees, c}` fails to parse.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              emilles Eric Milles
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: