[ https://issues.apache.org/jira/browse/GROOVY-11855 ]


    Eric Milles deleted comment on GROOVY-11855:
    --------------------------------------

was (Author: emilles):
https://github.com/apache/groovy/commit/3015f5e5cc7b2e27ed581ccfa7a88b23ba03c83c

> 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
>            Priority: Major
>
> 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