[Issue 561] New: Incorrect duplicate error messagae when trying to create instance of interface
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 18 08:38:55 PST 2006
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 at digitalmars.com
ReportedBy: deewiant at 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.
--
More information about the Digitalmars-d-bugs
mailing list