14 references to ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2511
or ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
Symbols\Extensions\SynthesizedExtensionMarker.cs (1)
102
diagnostics.Add(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, parameterTypeSyntax);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Semantics\ExtensionOperatorsTests.cs (7)
4508
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "C2").WithLocation(700, 19),
4529
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "T").WithLocation(1400, 22),
4532
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "T").WithLocation(1500, 22),
20101
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "C2").WithLocation(700, 19),
20122
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "T").WithLocation(1400, 22),
20125
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "T").WithLocation(1500, 22),
27531
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "C1").WithLocation(4, 19)
Semantics\ExtensionTests.cs (5)
4138
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "string").WithLocation(3, 19),
4141
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "T").WithLocation(8, 22));
18319
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "string").WithLocation(10, 19),
35769
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "C").WithLocation(14, 19),
42171
Diagnostic(ErrorCode.
ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne
, "string").WithLocation(6, 19),