July 12, 2011 [Issue 6294] New: Function overrides not checking for @property | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6294 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 --- Comment #0 from Michel Fortin <michel.fortin@michelf.com> 2011-07-12 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: ------- |
Copyright © 1999-2021 by the D Language Foundation