Eric Milles created GROOVY-11352: ------------------------------------ Summary: 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
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)