[Issue 3836] [TDPL] obligatory override attribute

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 26 10:29:33 PDT 2011


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



--- Comment #5 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-04-26 10:25:50 PDT ---
class Foo(T, R...) : Foo!R {
    override void bar() {
        super.bar();
    }
}
class Foo(T){
    void bar() {}
}
void main() {
    new Foo!(int, float)();
}

I don't see what's so confusing about that. Per -w (and per TDPL) any time that
you override a function, you need to put the override attribute on the version
in the subclass.

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