Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.13
-
None
-
any
-
Important
Description
This used to work up to 2.4.12:
@groovy.transform.CompileStatic class bla { static void main(String[] args) { println new Long( 5 / 3 ) } }
starting with 2.4.13, it gives this error message:
bla.groovy: 4: [Static type checking] - Cannot find matching method java.lang.Long#<init>(java.math.BigDecimal). Please check if the declared type is right and if the method exists. @ line 4, column 15. println new Long( 5 / 3 )
Attachments
Issue Links
- relates to
-
GROOVY-8488 STC: floating-point literals no longer accepted as args to method with double parameter
- Closed