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

Reply via email to