The latest preview release introduced a new compiler error E376 in our .NET 4.8 project.
This may be related to this change log line:
Delphi Compatibility: deprecated directive’s message was ignored
We use the ReadOnlySpan type when working with SkiaSharp :
var span := pixmap.GetPixelSpan;
The current stable release works fine. Is there an option to control the compiler’s E376 behavior? Changing the Delphi Compatibility setting doesn’t resolve the issue.
i’m not sure without full context. The deprecatedkeyword is supported in Delphi Compatibility Mode only; in regular Oxygene use the [Obsolete] attribute. We did make enforcement for some DCM-only keyworfds more strict in latest. But this still seems odd, especially if it shows in DCM too.
What’s the exact error?
Any chance we can see a (ideally small’ish) testcase that shows this?