GROOVY-6114: Immutable AST transformation may generate invalid bytecode in combination with @CompileStatic
GROOVY-6119: If an explicit map constructor is provided, the type checker doesn't use it