[Issue 6294] New: Function overrides not checking for @property
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 12 05:20:25 PDT 2011
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 at puremagic.com
ReportedBy: michel.fortin at michelf.com
--- Comment #0 from Michel Fortin <michel.fortin at 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: -------
More information about the Digitalmars-d-bugs
mailing list