Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.6
-
None
Description
class Test { @CompileStatic void fails1(Map<Integer, Closure<String>> markers, int i) { for (e in markers.entrySet()) { print i % e.key } } @CompileStatic void fails2(Map<Integer, Closure<String>> markers, int i) { for (e in markers.entrySet()) { int intKey = e.key print i % intKey } } @CompileStatic void passes(Map<Integer, Closure<String>> markers, int i) { for (e in markers.entrySet()) { print i % e.key.intValue() } } }