7 references to ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1794case ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne:
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
233diagnostics.Add(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, location, Name);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\RefExtensionMethodsTests.cs (5)
423Diagnostic(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, "PrintValue").WithArguments("PrintValue").WithLocation(4, 24), 467Diagnostic(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, "PrintValue").WithArguments("PrintValue").WithLocation(4, 24), 511Diagnostic(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, "PrintValue").WithArguments("PrintValue").WithLocation(4, 24), 593Diagnostic(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, "PrintValue").WithArguments("PrintValue").WithLocation(4, 24), 637Diagnostic(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, "PrintValue").WithArguments("PrintValue").WithLocation(4, 24),