www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8032] New: `mixin template` before virtual method with same method causes an error

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8032

           Summary: `mixin template` before virtual method with same
                    method causes an error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com



---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 04 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8032


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



https://github.com/D-Programming-Language/dmd/pull/925

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 04 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8032




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


Issue 8032 - `mixin template` before virtual method with same method causes an
error

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 04 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8032




Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/634453fc73909ee83d718e884604aa58d76c96ee
fix Issue 8032 test, for order independence

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10 2012