[Issue 8983] Overload introduced behind mixin template can't be called from another overload
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 9 01:43:34 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8983
Max Samukha <samukha at voliacable.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |samukha at voliacable.com
--- Comment #2 from Max Samukha <samukha at voliacable.com> 2012-11-09 01:43:32 PST ---
One unfortunate consequence of the nested scope rule is we cannot use unnamed
mixins for adding definitions to declarations.
mixin template Foo()
{
void foo() {}
}
class A
{
void foo();
mixin Foo;
}
results in undefined reference.
--
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