[Issue 3052] Passing alias to member function does not work (2/2)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 26 13:03:22 UTC 2019


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dkorpel at live.nl
         Resolution|---                         |FIXED

--- Comment #2 from Dennis <dkorpel at live.nl> ---
Up to 2.064 the error was indeed "template instance fun!(hun) cannot use local
'hun' as parameter to non-global template fun(alias fun)(A n)"

Since 2.065 it says:
onlineapp.d(15): Error: need 'this' for 'next' of type 'onlineapp.A'

Which is true, since gun is a static function and `next` a member variable.

--


More information about the Digitalmars-d-bugs mailing list