[Issue 19270] is expression fails with function types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 29 11:36:32 UTC 2023


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

Nick Treleaven <nick at geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org

--- Comment #3 from Nick Treleaven <nick at geany.org> ---
I think `is` should support function types directly:

is(typeof(foo) == int(short, double))

That might be easier to pattern match for A0. AFAICT writing a function type is
only allowed as the target of an alias declaration.

--


More information about the Digitalmars-d-bugs mailing list