groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniil Ovchinnikov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-7949) Disallow static inner classes within anonymous classes
Date Tue, 27 Sep 2016 16:03:21 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-7949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniil Ovchinnikov updated GROOVY-7949:
---------------------------------------
    Description: 
This just does not make sense, but works:
{code}
def a = new Hello() {
    static class Hello {
        def foo() { "hello" }
    }
}
println a.foo()
{code}



  was:
This just do not make sense, but works:
{code}
def a = new Hello() {
    static class Hello {
        def foo() { "hello" }
    }
}
println a.foo()
{code}




> Disallow static inner classes within anonymous classes
> ------------------------------------------------------
>
>                 Key: GROOVY-7949
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7949
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Daniil Ovchinnikov
>
> This just does not make sense, but works:
> {code}
> def a = new Hello() {
>     static class Hello {
>         def foo() { "hello" }
>     }
> }
> println a.foo()
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message