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

should Groovy allow constants of the form 1L?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-5
    • lexer
    • None

    Description

      Currently Groovy looks at the magnitude of an integer constant to see if it should be an int or a long. It does not support the trailing L notation to force the constant to be long.

      Is this desirable?

      Attachments

        Issue Links

          Activity

            People

              jstrachan James Strachan
              tug John Wilson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: