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

Compiler wrongly tries only static resolution when calling spread operator on a collection of strings

    XMLWordPrintableJSON

    Details

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              ddimitrov Dimitar Dimitrov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: