GROOVY-6183: Compile time errors and crashes with attribute expression on "this" in static context
GROOVY-6162: Fix type checking error with usage of "this" in static context