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

The spread-call syntax is statically compiled for collections, but not for arrays

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      @groovy.transform.CompileStatic
      class Test {
          def passing = 'a,b,c'.split(/,/).toList()*.trim()
          def failing = 'a,b,c'.split(/,/)*.trim()
      }
      

        Attachments

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              ddimitrov Dimitar Dimitrov

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment