www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4512] New: Class with abstract method

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4512

           Summary: Class with abstract method
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



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() {}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 26 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4512


Gide Nwawudu <gide nwawudu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |gide nwawudu.com
         Resolution|                            |DUPLICATE



See bug 2946

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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 27 2010