[Issue 16428] Cannot pattern match value template parameter
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Aug 25 08:07:49 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16428
John Colvin <john.loughran.colvin at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |john.loughran.colvin at gmail.
| |com
--- Comment #1 from John Colvin <john.loughran.colvin at gmail.com> ---
Shouldn't that be:
static assert(is(typeof(a) == A!(T, x), T, T x));
? It still fails though :(
Workaround:
static assert(is(typeof(a) == A!(T, x), T, alias x));
--
More information about the Digitalmars-d-bugs
mailing list