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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.0
    • 1.5
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: