ERRATA CORRIGE

It compiles, IntelliJ underlines it in red, I guess it's something with the
intelliJ Groovy plugin


Gianluca Sartori
--
https://dueuno.com


On Thu, 8 Oct 2026 at 10:09, Gianluca Sartori <[email protected]> wrote:

>
> Hi people,
>
> I was wondering why I have to do a cast to make it compile (Groovy 5 and
> @CompileStatic):
>
> private Map getFetch() {
>     return [user: 'join']
> }
>
> private Map getFetchAll() {
>     return fetch + ([:] as Map)
> }
>
>
>
> Gianluca Sartori
> --
> https://dueuno.com
>
  • Maps Gianluca Sartori
    • Re: Maps Gianluca Sartori

Reply via email to