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

Bad error message when declaring variable called "default" (a reserved word?)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.0
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None

      Description

      def default = "hello"
      

      Yields:

      Exception thrown: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script0: 2: unexpected token: def @ line 2, column 1.
      1 error

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marc@anyware.co.uk Marc Palmer
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: