You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on this forum thread: https://forum.dlang.org/thread/hyforteterjqhgghpshw@forum.dlang.org
Aliasing an inner function seems inconsistent with aliasing a member function in that the former aliases the contexted function whereas the latter not:
void main() {
struct S { void f() {} }
S s;
void f() {}
alias inner = f;alias member = s.f;pragma(msg, typeof(&inner)); // delegatepragma(msg, typeof(&member)); // function
}
so inner() can be called but not member() as you get: Error: need this for f of type void()
The text was updated successfully, but these errors were encountered:
Ali Ak reported this on 2018-06-26T03:33:43Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=19026
CC List
Description
The text was updated successfully, but these errors were encountered: