Thread overview |
---|
November 18, 2006 [Issue 561] New: Incorrect duplicate error messagae when trying to create instance of interface | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=561 Summary: Incorrect duplicate error messagae when trying to create instance of interface Product: D Version: 0.174 Platform: PC OS/Version: Windows Status: NEW Keywords: diagnostic Severity: minor Priority: P3 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: deewiant@gmail.com interface D { void foo(); } void main() { D d = new D(); } The above code errors out with: asdf.d(7): Error: cannot create instance of interface D asdf.d(7): Error: cannot create instance of abstract class D Huh? Abstract class? That's an interface, not an abstract class. The first error message is expected, the second is both incorrect and superfluous. -- |
November 18, 2006 [Issue 561] Incorrect duplicate error message when trying to create instance of interface | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=561 deewiant@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Incorrect duplicate error |Incorrect duplicate error |messagae when trying to |message when trying to |create instance of interface|create instance of interface ------- Comment #1 from deewiant@gmail.com 2006-11-18 10:47 ------- Damn typos. -- |
March 23, 2007 [Issue 561] Incorrect duplicate error message when trying to create instance of interface | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=561 deewiant@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch ------- Comment #2 from deewiant@gmail.com 2007-03-23 12:22 ------- This should be easy to fix. expression.c, line 2756, change from: if (cd->isAbstract()) To: else if (cd->isAbstract()) -- |
July 30, 2007 [Issue 561] Incorrect duplicate error message when trying to create instance of interface | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=561 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #3 from bugzilla@digitalmars.com 2007-07-30 15:46 ------- Fixed DMD 1.019 and 2.003 -- |
Copyright © 1999-2021 by the D Language Foundation