[Issue 11012] [TDPL] is(typeof(f) == function) fails with some functions

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 23 09:12:49 PDT 2017


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

anonymous4 <dfj1esp02 at sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://dlang.org/spec/expr
                   |                            |ession.html#IsExpression

--- Comment #8 from anonymous4 <dfj1esp02 at sneakemail.com> ---
static assert(is(typeof(&f)==delegate));
fails too, and spec doesn't specify how `is` expression works, which is
definitely a bug.

--


More information about the Digitalmars-d-bugs mailing list