Bug 8032 – `mixin template` before virtual method with same method causes an error

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-04T05:04:00Z
Last change time
2012-05-10T11:16:51Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2012-05-04T05:04:08Z
This doesn't compile if `mixin template` is declared before virtual method `f`: --- mixin template T() { void f() { } } class A { mixin T; // Named mixin causes the error too void f() { } } class B : A { override void f() { } } --- Error: class main.B use of main.A.f() hidden by B is deprecated
Comment #1 by k.hara.pg — 2012-05-04T08:55:36Z
Comment #2 by github-bugzilla — 2012-05-04T11:11:24Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/741b88c6a81320237c0a3cdd312238d0fcb20e9e fix Issue 8032 - `mixin template` before virtual method with same method causes an error https://github.com/D-Programming-Language/dmd/commit/b488853f4d3617945851d5d0a2ac20ccb7dab631 Merge pull request #925 from 9rnsr/fix8032 Issue 8032 - `mixin template` before virtual method with same method causes an error
Comment #3 by github-bugzilla — 2012-05-10T11:16:51Z