http://d.puremagic.com/issues/show_bug.cgi?id=8834
Summary: UFCS doesn't work with local aliases to functions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from stas <[email protected]> 2012-10-16 21:40:33 PDT ---
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
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------