[Issue 9235] Template mixin doesn't allow to mixin non-conflicting overloads

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 28 05:55:11 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9235



--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2012-12-28 05:55:08 PST ---
This is a kind of "template overload set", which is not yet supported in
current dmd.

Following is an another case which fails to compile based on the same issue.

---
// module a;
template A(T) if (is(T == int)) {}

// module b;
template A(T) if (is(T == double)) {}


// moudle test;
import a, b;
alias A!int X;
---

output:
test.d(5): Error: template instance A!(int) ambiguous template declaration
b.A(T) if (is(T == double)) and a.A(T) if (is(T == 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