http://d.puremagic.com/issues/show_bug.cgi?id=9053
Summary: Can't overload functions with mixin
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Roman <[email protected]> 2012-11-21 09:19:30 PST ---
mixin template MyMixin()
{
void foo(int)
{
}
}
struct A
{
void foo()
{
}
mixin MyMixin;
}
int main(string[] args)
{
A a;
a.foo(5);
return 0;
}
Error: function hello.A.foo () is not callable using argument types (int)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------