[Issue 9053] New: Can't overload functions with mixin
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 21 09:19:31 PST 2012
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: nobody at puremagic.com
ReportedBy: freeslave93 at gmail.com
--- Comment #0 from Roman <freeslave93 at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list