https://d.puremagic.com/issues/show_bug.cgi?id=12386
Summary: Allow using derivatives of IFTI'd types in remaining
arguments
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Vladimir Panteleev <[email protected]> 2014-03-17
07:37:26 EET ---
//////// test.d ////////
alias X(T) = T;
void f(T)(T a, X!T b) {}
void main()
{
f(5, 5);
}
////////////////////////
Once the compiler knows what type T is, it can also know what X!T is.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------