[Issue 16390] __traits not accepted where a type is expected

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Aug 15 11:27:39 PDT 2016


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

--- Comment #3 from b2.temp at gmx.com ---
(In reply to Lodovico Giaretta from comment #2)
> (In reply to b2.temp from comment #1)
> If this was meant to be a workaround, it doesn't seem to work for me (the
> trait returns a type, while typeof expects an expression).
> 
> If it was meant to be another situation where __traits should be allowed but
> are not, it looks like they are currently allowed inside typeof.

Yes, second case, sorry. It clearly doesn't work with the parent __traits.

--


More information about the Digitalmars-d-bugs mailing list