11 references to ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2100
or ErrorCode.
ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1007
diagnostics.Add(ErrorCode.
ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
, overridingMemberLocation, overridingMember, overriddenMember, overriddenMethod.ReturnType);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\RecordTests.cs (1)
17294
Diagnostic(ErrorCode.
ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
, "GetHashCode").WithArguments("B.GetHashCode()", "A.GetHashCode()", "A").WithLocation(3, 23)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Symbols\CovariantReturnTests.cs (8)
548
Diagnostic(ErrorCode.
ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
, "M").WithArguments("Derived.M()", "Base.M()", "object").WithLocation(8, 28)
712
Diagnostic(ErrorCode.
ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
, "M").WithArguments("Derived.M()", "Base.M()", "object").WithLocation(8, 28)
719
Diagnostic(ErrorCode.
ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
, "M").WithArguments("Derived.M()", "Base.M()", "object").WithLocation(8, 28)
3837
Diagnostic(ErrorCode.
ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
, "M").WithArguments("Derived.M(ref string, out string)", "Base1<string>.M(ref string, out string)", "object")
3960
Diagnostic(ErrorCode.
ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
, "M").WithArguments("Derived.M(ref string, out string)", "Base1<string>.M(ref string, out string)", "object")
4080
Diagnostic(ErrorCode.
ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
, "M").WithArguments("Derived.M(ref string, out string)", "Base<string>.M(ref string, out string)", "object")
4195
Diagnostic(ErrorCode.
ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
, "M").WithArguments("Derived.M(ref string, out string)", "Base<string>.M(ref string, out string)", "object")
4314
Diagnostic(ErrorCode.
ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses
, "M").WithArguments("Derived.M(out string)", "Base2<string>.M(out string)", "object")