Eric Milles created GROOVY-11855:
------------------------------------

             Summary: Access to outer class static members for inner interface
                 Key: GROOVY-11855
                 URL: https://issues.apache.org/jira/browse/GROOVY-11855
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 5.0.4
            Reporter: Eric Milles
            Assignee: Eric Milles


Consider the following:
{code:groovy}
class Outer {
    interface Inner {
        default i() {
            'i' + o
        }
    }
    private static o = 'o'
}
{code}

or

{code:groovy}
class Outer {
    interface Inner {
        default i() {
            'i' + o()
        }
    }
    private static o() { 'o' }
}
{code}

Access to field "o" or method "o()" should be possible since the members are 
static.  At this time, both result in missing member exceptions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to