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