March 31, 2015 [Issue 3052] Passing alias to member function does not work (2/2) | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=3052 Maksim Zholudev <maximzms@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maximzms@gmail.com -- |
June 26, 2019 [Issue 3052] Passing alias to member function does not work (2/2) | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=3052 Dennis <dkorpel@live.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dkorpel@live.nl Resolution|--- |FIXED --- Comment #2 from Dennis <dkorpel@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. -- |
Copyright © 1999-2021 by the D Language Foundation