https://issues.dlang.org/show_bug.cgi?id=21917

--- Comment #6 from Nick Treleaven <[email protected]> ---
> Looks like there is code to do this when resolving overloads:

I think that's now in templatesem.d, matchWithInstance:

            // Shouldn't run semantic on default arguments and return type.
            foreach (ref param; *tf.parameterList.parameters)
                param.defaultArg = null;

--

Reply via email to