Documentation on the parametric form of new{}
is pretty scarce. This section says
new{T,S}
can be used in any constructor definition, but for convenience the parameters tonew{}
are automatically derived from the type being constructed when possible.
but I wonder
- how exactly that works,
- if, in parametric methods,
new(...)
is just always silently replaced by an automaticnew{...}(...)
, or the two forms are actually different.
(asking here before opening an issue)