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

Steven Schveighoffer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Steven Schveighoffer <[email protected]> ---
(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

--

Reply via email to