April 22, 2005 Unobvious error message | ||||
---|---|---|---|---|
| ||||
class A {
this() {}
void func() { this(); }
}
test.d:3: class constructor call must be in a constructor
and more serious:
class A {
this() {}
void opCall() {}
void func() {
this(); // this should call opCall, shouldn't it ?
}
}
--
Vladimir
|
Copyright © 1999-2021 by the D Language Foundation