Jochen Theodorou created GROOVY-11145:
-----------------------------------------

             Summary: Iterable DGM not recognized for List
                 Key: GROOVY-11145
                 URL: https://issues.apache.org/jira/browse/GROOVY-11145
             Project: Groovy
          Issue Type: Bug
          Components: Static compilation, Static Type Checker
    Affects Versions: 4.0.13, 3.0.9, 2.5.12
            Reporter: Jochen Theodorou


{code:Java}
  @groovy.transform.CompileStatic
  def m() {
    ["a", "b"].join()
  }

  assert m() == "ab"
{code}
I expected the code above to work since there is a join(Iterable<T>) method in 
DGM, but the code gives instead a compilation error. Works of course in dynamic 
mode. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to