[Issue 7529] New: IFTI does not support aliases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 16 18:35:03 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7529
Summary: IFTI does not support aliases
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: kyfolee at gmail.com
--- Comment #0 from Kyle Foley <kyfolee at gmail.com> 2012-02-16 21:35:01 EST ---
DMD 2.058
template Type(T) { alias T Type; }
void f(T)(T, Type!(T)) {}
void main()
{
f(0, 0); // fail
f!(int)(0, 0); // success
}
---
.\ifti_alias.d(6): Error: template ifti_alias.f(T) does not match any function
template declaration
.\ifti_alias.d(6): Error: template ifti_alias.f(T) cannot deduce template
function from argument types !()(int,int)
--
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