(In reply to comment #2)
> https://github.com/D-Programming-Language/dmd/pull/2420
Another testcase (after pulling in the pull request). DMD does not crib about missing override for function Foo.frop. But starts doing that if "alias toArray this" in CirBuff(T) is commented out.
struct CirBuff(T) {
import std.traits: isArray;
CirBuff!T opAssign(R)(R ) if(isArray!R) { }
T[] toArray() {
T[] ret; // = new T[this.length];
return ret;
}
alias toArray this;
}
class Bar (T=int){
CirBuff!T _bar;
}
class Once {
Bar!Foo _foobar;
}
class Foo: Frop {
// override
public int frop() {return 1;}
}
class Frop {
public int frop() {return 0;}
}
Comment #4 by github-bugzilla — 2013-07-30T21:49:19Z