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

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #3 from RazvanN <[email protected]> ---
This enhancement request is invalid for 2 reasons:

1. Alias this is used for struct/class members. payload is not a member of
struct S so the error you are getting is correct. 

2. Alias this can be used only in conjunction with identifiers not
dotExpressions of any kind [1]. Therefore this code is not going to pass the
parsing phase.

Closing as invalid.

[1] https://dlang.org/spec/grammar.html#AliasThis

--

Reply via email to