groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Sun (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8311) [Parrot]Failed to check duplicated parameters properly
Date Fri, 08 Sep 2017 16:49:01 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-8311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16158909#comment-16158909
] 

Daniel Sun commented on GROOVY-8311:
------------------------------------

Fixed by https://github.com/apache/groovy/commit/302a78e3df5de2a1bc34d478214358f3b32d4714

> [Parrot]Failed to check duplicated parameters properly
> ------------------------------------------------------
>
>                 Key: GROOVY-8311
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8311
>             Project: Groovy
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 2.6.0-alpha-1
>            Reporter: Daniel Sun
>            Assignee: Daniel Sun
>             Fix For: 2.6.0-alpha-2
>
>
> The following code yields {{Duplicated named parameter 'name' found at line: 5, column:
27}}
> {code:java}
> def greet(args) {  
>     [args.name, args.age] 
> } 
> def name = 'age' 
> assert greet(name: 'Doe', (name): 8) == ['Doe', 8]
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message