[Issue 5129] New: More strict 'abstract' management
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 29 05:10:53 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5129
Summary: More strict 'abstract' management
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: diagnostic
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2010-10-29 05:10:03 PDT ---
DMD 2.050beta compiles this, then it fails at linking time:
abstract class A {
public void foo();
}
class B : A {}
void main() {}
What I expect: A compile-time error generated by the compiler, something like:
error(4): class 'B' is not abstract, yet it doesn't implement abstract method
'foo' of class 'A' it inherits from.
See also bug 2946
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list