Hi there,

> On 23. 11. 2024, at 4:12, MG <mg...@arscreat.com> wrote:
> Groovy new can be overridden to return a different type on purpose

can it? How? (Aside of an ASTT which would be a bit at the complex side for 
such a trivial thing.) I must have missed this thing in the documentation 
somewhere, and searching the documentation for “new” or “override” does not 
really help for obvious reasons :)

I am using consistently newInstance in my code so that I can override it easily 
if need be; a possibility to use the plain ole new same way would be nice, 
especially when working with a legacy code.

Thanks,
OC

Reply via email to