[Issue 17661] New isInputRange rejects valid input range

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 19 07:01:00 PDT 2017


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

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to Andrei Alexandrescu from comment #1)
> is(typeof((R r) => r.front)) || is(typeof((R r) return => r.front))


I'm new to the "return" annotation, but is that right? I mean, I thought return
was supposed to be an annotation on the parameter, not the function itself
(which in this case is actually not a member function).

I would have expected:

(return R r) => r.front

--


More information about the Digitalmars-d-bugs mailing list