Bug 6294 – Function overrides not checking for @property

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-07-12T05:15:14Z
Last change time
2024-12-13T17:55:47Z
Assigned to
No Owner
Creator
Michel Fortin
Moved to GitHub: dmd#18354 →

Comments

Comment #0 by michel.fortin — 2011-07-12T05:15:14Z
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.
Comment #1 by lt.infiltrator — 2014-03-19T18:56:15Z
This now correctly does not compile, but the error messages could be improved: /d519/f363.o:(.rodata+0x48): undefined reference to `_D4f3631A3fooMFZi' /d519/f363.o:(.rodata+0x50): undefined reference to `_D4f3631A3barMFNdZi' /d519/f363.o:(.rodata+0xa8): undefined reference to `_D4f3631B3fooMFNdZi' /d519/f363.o:(.rodata+0xb0): undefined reference to `_D4f3631B3barMFZi' collect2: error: ld returned 1 exit status --- errorlevel 1
Comment #2 by robert.schadek — 2024-12-13T17:55:47Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18354 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB