[ 
https://issues.apache.org/jira/browse/GROOVY-12549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Sun reassigned GROOVY-12549:
-----------------------------------

    Fix Version/s: 7.0.0-alpha-1
         Assignee: Daniel Sun

> STC: setProperty in DELEGATE_FIRST closure resolves against CloSTC: 
> setProperty in DELEGATE_FIRST closure resolves against Closure's own 
> setProperty overloads (ambiguous), ignoring delegatesure's own setProperty 
> overloads (ambiguous), ignoring delegate
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-12549
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12549
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler, Static compilation
>    Affects Versions: 5.0.0-alpha-9, 5.1.3, 6.0.0
>            Reporter: Christopher Smith
>            Assignee: Daniel Sun
>            Priority: Minor
>             Fix For: 7.0.0-alpha-1
>
>         Attachments: mcve06_tap_setproperty_ambiguity.groovy
>
>
> Calling {{setProperty()}} from within a {{tap}} closure (which is 
> DELEGATE_FIRST) produces an ambiguous method error from 5.0.0-alpha-9 (not 
> 8), matching on DGM extension methods instead of inspecting the closure 
> delegate, which has a matching method named {{setProperty}}.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to