TypeCobol icon indicating copy to clipboard operation
TypeCobol copied to clipboard

.NET 6.0 Use covariant return type for overridden properties/methods

Open fm-117 opened this issue 1 year ago • 0 comments

See https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-9.0/covariant-returns.

This new C# 9 feature can be used to simplify the code related to CodeElement / InternalCodeElement properties.

  • change return type for Node.CodeElement
  • remove InternalCodeElement property

fm-117 avatar May 09 '23 09:05 fm-117