Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.7, 2.3.0
-
None
Description
@groovy.transform.CompileStatic @groovy.util.logging.Slf4j class Foo { static class Bar { void method() { log.info('some info') } } } new Foo.Bar().method()
produces the compilation error
[Static type checking] - The variable [log] is undeclared. at line: 6, column: 7
But works perfectly fine without the @CompileStatic. Additionally, the inner class can be either static or non-static and the same compilation error occurs.