http://d.puremagic.com/issues/show_bug.cgi?id=3910
Summary: Explicit template instantiations for functions used as
array properties?
Product: D
Version: 2.041
Platform: Other
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from biozic <[email protected]> 2010-03-09 00:40:11 PST ---
Shouldn't the last line of the following code compile?
---
void foo(T)(T[] array) {}
void main()
{
int[] a = [1, 2, 3];
foo(a); // OK
foo!int(a); // OK
a.foo(); // OK
//a.foo!int(); // Error: foo(a) isn't a template
}
---
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------