Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Mac OS X
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)
Description
Following code:
@groovy.transform.CompileStatic def foo() { int[] perm = new int[10] for (i in 0..<10) { println(perm[i-0]) } }
generates error message:
Caught: BUG! exception in phase 'class generation' in source unit '/private/tmp/f.groovy' At line 13 column 20
On receiver: i with message: minus and arguments: 0
This method should not have been called. Please try to create a simple example reproducing this error and filea bug report at http://jira.codehaus.org/browse/GROOVY
BUG! exception in phase 'class generation' in source unit '/private/tmp/f.groovy' At line 13 column 20
On receiver: i with message: minus and arguments: 0
This method should not have been called. Please try to create a simple example reproducing this error and filea bug report at http://jira.codehaus.org/browse/GROOVY
following is ok
@groovy.transform.CompileStatic def foo() { int[] perm = new int[10] for (int i in 0..<10) { println(perm[i-0]) } }