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

[Parrot]Failed to check duplicated parameters properly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0-alpha-1
    • Fix Version/s: 2.6.0-alpha-2
    • Component/s: parser
    • Labels:
      None

      Description

      The following code yields Duplicated named parameter 'name' found at line: 5, column: 27

      def greet(args) {  
          [args.name, args.age] 
      } 
      def name = 'age' 
      assert greet(name: 'Doe', (name): 8) == ['Doe', 8]
      

        Attachments

          Activity

            People

            • Assignee:
              daniel_sun Daniel Sun
              Reporter:
              daniel_sun Daniel Sun
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: