11 references to ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
2139
Error(diagnostics, ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, node, parameter.Name);
Errors\ErrorFacts.cs (1)
1294
or ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
RefStructInterfacesTests.cs (2)
26516
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "r1").WithArguments("r1").WithLocation(9, 16),
26519
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "t").WithArguments("t").WithLocation(10, 15)
Semantics\PrimaryConstructorTests.cs (7)
15688
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "x").WithArguments("x").WithLocation(6, 9),
15720
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "x").WithArguments("x").WithLocation(6, 9),
20163
("0010", BadReference, "(S1 p1) { void M1() { p1.M(); } } ref struct S1 { public void M(){} }", ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
),
20283
case ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
:
20287
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "p1").WithArguments("p1").WithLocation(2000, 1)
20323
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "r").WithArguments("r").WithLocation(9, 17),
20326
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "r").WithArguments("r").WithLocation(10, 25)