Daniil Ovchinnikov created GROOVY-8658:
------------------------------------------

             Summary: MME on instance receiver via method closure
                 Key: GROOVY-8658
                 URL: https://issues.apache.org/jira/browse/GROOVY-8658
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 2.5.0
            Reporter: Daniil Ovchinnikov


{code:groovy}
def c = String.&toUpperCase
c() // IAE: object is not an instance of declaring class
c("hi") // MME: No signature of method: java.lang.String.toUpperCase() is 
applicable for argument types: (java.lang.String) values: [hi]
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to