[Issue 9076] New: Aliased template function and property resolution doesn't work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 25 08:21:46 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9076
Summary: Aliased template function and property resolution
doesn't work
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-11-25 08:21:44 PST ---
This code doesn't work.
//import std.algorithm : forward;
template forward(args...)
{
@property forward()(){ return args[0]; }
}
void main()
{
int a = 1;
int b = 1;
assert(a == forward!b);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list