Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2.1
-
None
-
groovy 2.2.1, Oracle JVM: 1.7.0_51 on Linux
Description
Compiling the testcase generates the following error message:
BUG! exception in phase 'class generation' in source unit '/home/ataylor/dev/groovybug/testcase.groovy' At line 13 column 23
The test case:
class Foo { String getAt(int i) { "0" } } @groovy.transform.CompileStatic class Bar { def bug() { def foo = new Foo() def bar = ["bar"] for (i in 1..2) { bar[i] = foo[i] } } }