Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
4.0.14, 4.0.15
-
None
-
None
-
None
Description
the following code when entered into groovyConsole works on 4.0.13 but breaks on 4.0.14/4.0.15
import groovy.transform.* @CompileStatic static foo() { def l = [37, 34, 12, 412, 5] [l, [0] + l].transpose().each { int i, int j -> println "foo $i $j" } } foo()
The error is
1 compilation error:Incorrect number of parameters. Expected 1 but found 2 at line: 6, column: 35
The correct output should be
foo 37 0 foo 34 37 foo 12 34 foo 412 12 foo 5 412
Attachments
Issue Links
- is related to
-
GROOVY-11089 STC: closure param type inference for array and list
- Closed
-
GROOVY-11092 STC: support coerced closure argument destructuring (for list and tuple)
- Closed