11 references to ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
2180
Error(diagnostics, ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, node, parameter.Name);
Errors\ErrorFacts.cs (1)
1292
or ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
RefStructInterfacesTests.cs (2)
26120
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "r1").WithArguments("r1").WithLocation(9, 16),
26123
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "t").WithArguments("t").WithLocation(10, 15)
Semantics\PrimaryConstructorTests.cs (7)
15548
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "x").WithArguments("x").WithLocation(6, 9),
15580
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "x").WithArguments("x").WithLocation(6, 9),
20023
("0010", BadReference, "(S1 p1) { void M1() { p1.M(); } } ref struct S1 { public void M(){} }", ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
),
20143
case ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
:
20147
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "p1").WithArguments("p1").WithLocation(2000, 1)
20183
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "r").WithArguments("r").WithLocation(9, 17),
20186
Diagnostic(ErrorCode.
ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
, "r").WithArguments("r").WithLocation(10, 25)