Thread overview
[Issue 17263] Issue diagnostic if mandatory template parameter is missing
Mar 20
Lewis
March 17
https://issues.dlang.org/show_bug.cgi?id=17263

Jonathan M Davis <issues.dlang@jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang@jmdavisProg.co
                   |                            |m

--- Comment #1 from Jonathan M Davis <issues.dlang@jmdavisProg.com> ---
Yeah, this is one of those that's usually surprisingly hard to figure out. I usually end up doing a lot of examination of template constraints before I figure out that I simply forgot the !. It's a lot more obvious in this example, because it's short, but one you start chaining templates or having complicated predicates, it quickly becomes non-obvious that the ! is missing.

--
March 18
https://issues.dlang.org/show_bug.cgi?id=17263

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
                 CC|                            |thecybershadow@gmail.com

--
March 20
https://issues.dlang.org/show_bug.cgi?id=17263

Lewis <musicaljelly@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |musicaljelly@gmail.com

--- Comment #2 from Lewis <musicaljelly@gmail.com> ---
+1

I have made this mistake many times, and spent an embarrassingly long time trying to deduce the solution each time. A better compiler error would make the fix immediately obvious in these cases.

--