Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5184

Static type checker doesn't handle divisions properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-1
    • 2.0-beta-2
    • Static Type Checker
    • None

    Description

      In the following code:

      def res = 1 / 2
      

      The inferred type is a Number because of the return type of DGM#div.

      Attachments

        Issue Links

          Activity

            People

              melix Cédric Champeau
              melix Cédric Champeau
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: