[Issue 15743] typeof function literal with unnamed parameter of aliased type is void

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Mar 2 18:31:45 PST 2016


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

ryan at rcorre.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #2 from ryan at rcorre.net ---
Oh, that seems obvious in retrospect.
I was confused by a unittest in std/variant:
https://github.com/D-Programming-Language/phobos/blob/master/std/variant.d#L2051-2053.
!__traits(compiles, ...) passes, but not for the reason I thought!

I also assumed string is a keyword, but apparently its not.

I think its fair to close this.

I have a fix for that test included as part of a PR for something else:
https://github.com/D-Programming-Language/phobos/pull/4035.

--


More information about the Digitalmars-d-bugs mailing list