E376: Member is obsolete: Types with embedded references are not supported in this version of your compiler

Hi

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.

Regards

Artur