Eric Milles created GROOVY-8488:

             Summary: STC: floating-point literals no longer accepted as args 
to method with double parameter
                 Key: GROOVY-8488
             Project: Groovy
          Issue Type: Bug
            Reporter: Eric Milles

I'm not sure if this recent change was intentional or not.  If it is intended, 
so be it.  But in case this has not been seen by anyone else, we had a lot of 
code that did floating-point computations and used @CompileStatic.  Starting 
with Groovy 2.4.13 (I think), we are seeing STC errors.

import groovy.transform.CompileStatic

class Static {

  def main() {
    meth(1.0) // STC error

  def meth(double val) {

This message was sent by Atlassian JIRA

Reply via email to