[ https://issues.apache.org/jira/browse/GROOVY-11352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840181#comment-17840181 ]
Eric Milles edited comment on GROOVY-11352 at 4/23/24 10:35 PM: ---------------------------------------------------------------- https://github.com/apache/groovy/commit/d98796e41b47da04570bdef52ba4ed57d3e12d66 https://github.com/apache/groovy/commit/b4f5f2677f9a15c03279e9a9bd5bc83cd0532522 was (Author: emilles): https://github.com/apache/groovy/commit/d98796e41b47da04570bdef52ba4ed57d3e12d66 > Reference to this in ctor before this/super call false positive > --------------------------------------------------------------- > > Key: GROOVY-11352 > URL: https://issues.apache.org/jira/browse/GROOVY-11352 > Project: Groovy > Issue Type: Bug > Components: Compiler > Reporter: Eric Milles > Assignee: Eric Milles > Priority: Major > Fix For: 3.0.22, 5.0.0-alpha-9, 4.0.22 > > > Consider the following: > {code:groovy} > class Outer { > static foo() {} > static class Inner { > Inner() { > super(foo()) // Cannot reference 'foo' before supertype constructor has > been called > } > } > } > {code} > The detection of "this" variable expression does not exclude cases of > implicit-this reference to static outer class method. -- This message was sent by Atlassian Jira (v8.20.10#820010)