10 references to ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1855
or ErrorCode.
ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
222
diagnostics.Add(ErrorCode.
ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
, _location, Name);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\CollectionExpressionTests.cs (1)
40808
Diagnostic(ErrorCode.
ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
, "Add").WithArguments("Add").WithLocation(12, 24),
Semantics\ExtensionTests.cs (2)
17296
Diagnostic(ErrorCode.
ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
, "M").WithArguments("M").WithLocation(15, 30));
31336
Diagnostic(ErrorCode.
ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
, "M2").WithArguments("M2").WithLocation(18, 24));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\RefExtensionMethodsTests.cs (5)
423
Diagnostic(ErrorCode.
ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
, "PrintValue").WithArguments("PrintValue").WithLocation(4, 24),
467
Diagnostic(ErrorCode.
ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
, "PrintValue").WithArguments("PrintValue").WithLocation(4, 24),
511
Diagnostic(ErrorCode.
ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
, "PrintValue").WithArguments("PrintValue").WithLocation(4, 24),
593
Diagnostic(ErrorCode.
ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
, "PrintValue").WithArguments("PrintValue").WithLocation(4, 24),
637
Diagnostic(ErrorCode.
ERR_RefExtensionMustBeValueTypeOrConstrainedToOne
, "PrintValue").WithArguments("PrintValue").WithLocation(4, 24),