7 references to RuntimeSupportsCovariantReturnsOfClasses
Microsoft.CodeAnalysis.CSharp (7)
Symbols\AssemblySymbol.cs (1)
419return this.RuntimeSupportsCovariantReturnsOfClasses;
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
948if (method.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (4)
854if (!this.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses && overridingMember is MethodSymbol overridingMethod) 1000if (!overridingMethod.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses) 1070if (!overridingProperty.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses) 1200if (overridingSymbol.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses &&
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
98return (ReturnType: !ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses && VirtualCloneInBase(ContainingType) is { } baseClone ?