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

negative number can be used as key for map

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0-JSR-1
    • 1.0-JSR-4
    • parser-antlr2
    • None
    • WindowsXP cvs-head 2005.06.06

    Description

      e:\temp\demo.groovy: 1: unexpected token: : @ line 1, column 28.
      m =[1:"a", 2:"B", 0:"c", -2:"d"];
      ^1 Errors
      for my groovy file:

      m =[1:"a", 2:"B", 0:"c", -2:"d"];
      println m;

      Attachments

        1. demo.groovy
          0.0 kB
          wangbin

        Issue Links

          Activity

            People

              jrose Jon Rose
              wangbin wangbin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: