11 references to ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
2180Error(diagnostics, ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, node, parameter.Name);
Errors\ErrorFacts.cs (1)
1292or ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
RefStructInterfacesTests.cs (2)
26120Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, "r1").WithArguments("r1").WithLocation(9, 16), 26123Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, "t").WithArguments("t").WithLocation(10, 15)
Semantics\PrimaryConstructorTests.cs (7)
15548Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, "x").WithArguments("x").WithLocation(6, 9), 15580Diagnostic(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), 20143case ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike: 20147Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, "p1").WithArguments("p1").WithLocation(2000, 1) 20183Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, "r").WithArguments("r").WithLocation(9, 17), 20186Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, "r").WithArguments("r").WithLocation(10, 25)