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

Lexer does not recognize .1 as a numeric literal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-5
    • lexer
    • None
    • Windows 2000, Sun JRE 1.4.2_03

    Description

      The following does not compile:
      x = .1

      a numeric literal must start with a number (e.g. 0.1). This is not required in other languages such as Java.

      Attachments

        Issue Links

          Activity

            People

              bl7385 Brian Larson
              bl7385 Brian Larson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified