[Issue 204] Improve error message.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 18 08:09:02 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=204
------- Comment #1 from deewiant at gmail.com 2006-06-18 10:09 -------
To show the issue more clearly:
--
class Foo { abstract void foo(); }
class Bar : Foo {}
void main() {
Bar bar = new Bar();
}
--
The code fails with "cannot create instance of abstract class Bar". What is
being asked for is an error message which would, in this instance, clarify that
the reason the instantiation fails is that the method foo() is unimplemented in
Bar.
--
More information about the Digitalmars-d-bugs
mailing list