[Issue 726] New: incorrect error line for "override" mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 23 05:08:41 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=726

           Summary: incorrect error line for "override" mixin
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thomas-dloop at kuehne.cn


(Originally reported by Sean Kelly <sean at f4.ca> on 2005-04-15
in news:d3pa4s$17qk$1 at digitaldaemon.com)

#
# class C{
# }
#
# class D : C{
#    template fn() {
#       override void fn(){ // line A
#       }
#    }
#    mixin fn; // line B
# }
#

DMD complains about line A but doesn't mention the cause in line B.

test cases:
http://dstress.kuehne.cn/nocompile/o/override_10.d


-- 



More information about the Digitalmars-d-bugs mailing list