Bug 8834 – UFCS doesn't work with local aliases to functions

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-16T21:40:00Z
Last change time
2013-01-02T00:35:09Z
Assigned to
nobody
Creator
stasoid

Comments

Comment #0 by stasoid — 2012-10-16T21:40:33Z
Applies to: DMD 2.060 This should work: import std.stdio, std.string; void main() { alias toStringz z; sscanf("".z,"".z); // Error: undefined identifier 'z' // OK if z is not local }
Comment #1 by yebblies — 2013-01-02T00:35:09Z
*** This issue has been marked as a duplicate of issue 6185 ***