Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
This code
@CompileStatic class X { static void bar(){ for (int i=0;i<1000000; i+=foo()){} } static foo(){1} }
may not make so much sense, but should at least not fail during compilation with a GroovyBugError. The message complains about the method call in the i+=foo() part