I m under Delphi Tokyo release 2 and I have this declaration:
type
FIRMessagingConnectCompletion = procedure of object;
That I would flag as deprecated. I try like this:
type
FIRMessagingConnectCompletion = procedure of object deprecated 'Please listen for the FIRMessagingConnectionStateChangedNotification NSNotification instead.';
But didn't work with error "E1030 Invalid compiler directive: 'DEPRECATED'"
. What did I miss?
It seems that this is not allowed by the compiler. But there is a workaround:
type
TProc = procedure of object;
TProc1 = TProc deprecated 'test';
Update:
As pointed in comennts will be better this variant
type
__InternalFakeProcType__ = procedure of object;
TProc = __InternalFakeProcType__ deprecated 'test';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With