D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4512 - Class with abstract method
Summary: Class with abstract method
Status: RESOLVED DUPLICATE of issue 2946
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 minor
Assignee: No Owner
URL:
Keywords: accepts-invalid
Depends on:
Blocks:
 
Reported: 2010-07-26 13:45 UTC by bearophile_hugs
Modified: 2010-07-27 07:17 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2010-07-26 13:45:24 UTC
This compiles with no errors with dmd 2.047:

class Foo {
    abstract void bar();
}
void main() {}


But in my opinion dmd has to require code like this, where Foo too has 'abstract' (I think LDC compiler does the same):

abstract class Foo {
    abstract void bar();
}
void main() {}


See also bug 3934

----------------


This is instead OK, because according to D syntax all Foo methods are meant to be abstract:

abstract class Foo {
    void bar();
}
void main() {}
Comment 1 Gide Nwawudu 2010-07-27 07:17:02 UTC
See bug 2946

*** This issue has been marked as a duplicate of issue 2946 ***