Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.6-beta-2
-
None
-
None
-
Mac OS 10.5.2
Java 1.5.0_13
Groovy 1.6-beta-2-SNAPSHOT
Description
It seems that in Groovy, the increment/decrement operator is not only allowed
on variables, but also on values. Here is a script that compiles without
problems:
def x = 0 println(id(x)++) def id(x) { x }
However, at runtime I get:
Caught: java.lang.VerifyError: (class: IncTest, method: run signature:
()Ljava/lang/Object Incompatible object argument for function call