www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6294] New: Function overrides not checking for property


           Summary: Function overrides not checking for  property
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: michel.fortin michelf.com

08:15:14 EDT ---
When you override a function, the compiler should issue an error if there is a
mismatch about  property.

class A {
    int foo();
     property int bar();
class B : A {
     property override int foo();
    override int bar();

The code above emits no error, but both overrides have a mismatch with their
overriden counterpart regarding  property.

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