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

Daniel Sun commented on GROOVY-12549:
-------------------------------------

Fixed on master; added a regression test in 
5a59b048851a8a75820bfd9d0ed83705cf7ed3a5 
(https://github.com/apache/groovy/commit/5a59b048851a8a75820bfd9d0ed83705cf7ed3a5).

> 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