[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 04:38:30 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8983
--- Comment #5 from Maxim Fomin <maxim at maxim-fomin.ru> 2012-11-09 04:38:29 PST ---
(In reply to comment #4)
> (In reply to comment #3)
>
> >
> > Even if there were no nested scope, this still would not work because function
> > with omitted body is expected to appear in another object file:
> >
>
> That changed recently. Now
>
> class A
> {
> void foo();
> void foo() { }
>
> void bar();
> mixin(q{ void bar() {} });
> }
>
> void main()
> {
> auto a = new A;
> a.foo();
> a.bar();
> }
>
> works as expected.
Do you compile it with version from git? Dmd 2.060 rejects this. When it was
fixed?
--
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