Christopher Smith created GROOVY-12549:
------------------------------------------

             Summary: 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: 6.0.0, 5.1.3, 5.0.0-alpha-9
            Reporter: Christopher Smith
         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