www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 726] New: incorrect error line for "override" mixin

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


(Originally reported by Sean Kelly <sean f4.ca> on 2005-04-15
in news:d3pa4s$17qk$1 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


-- 
Dec 23 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=726


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2007-11-03 21:44 -------
Fixed dmd 1.023 and 2.007


-- 
Nov 03 2007