[Issue 24241] Uncaught Default argument error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 13 14:44:02 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24241
--- Comment #8 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to ponce from comment #6)
> By spec:
> https://dlang.org/spec/function.html#function-default-args
>
>
> > Default parameters are resolved and semantically checked in the context of the function declaration.
>
> and later
>
> > If the default value for a parameter is given, all following parameters must also have default values.
>
>
> Pretty much a bug then?
The spec needs to be updated.
--
More information about the Digitalmars-d-bugs
mailing list