[Issue 1835] typeof(this) should return the type of object or some other typeof() is needed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 14 06:47:23 PST 2008


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





------- Comment #3 from aarti at interia.pl  2008-02-14 08:47 -------
... B derives after A of course:

class A {
  typeof(this) setX(int x) {
    this.x = x;
  }
  int x;
}

class B : A {
        void test() {}
}


-- 



More information about the Digitalmars-d-bugs mailing list