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

[Parrot]Failed to check duplicated parameters properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0-alpha-1
    • 2.6.0-alpha-2
    • parser
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: