Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.5.1
-
None
-
None
Description
Code:
import groovy.transform.CompileStatic @CompileStatic class A { int num static main(args) { def a = new A() a.num = 5 a.num += 10 } }
Main method compiles to:
A a = new A(); byte var2 = 5; a.setNum(var2); Object var10001 = null; ScriptBytecodeAdapter.setProperty(a.getNum() + 10, (Class)null, a, (String)"num");
Attachments
Issue Links
- links to