www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1449] New: deprecated methods are counted as interface implementation

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

           Summary: deprecated methods are counted as interface
                    implementation
           Product: D
           Version: 1.020
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: larsivar igesund.net


class Foo : Bar {
    deprecated void foo() {}
}

interface Bar {
    void foo();
}

compiles cleanly with "dmd -c deprecatedtest.d"


-- 
Aug 29 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1449


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from bugzilla digitalmars.com  2007-09-05 01:28 -------
Deprecated methods issue an error if they are called, not if they are declared.


-- 
Sep 04 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1449


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Comment #2 from smjg iname.com  2007-09-05 17:32 -------
That's completely irrelevant.  The point is that, because the implementing
method is deprecated, the class effectively doesn't implement the interface it
claims to.


-- 
Sep 05 2007