24 references to ERR_RefAssignReturnOnly
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
1565
(ReturnOnlyScope, false) => ErrorCode.
ERR_RefAssignReturnOnly
,
Errors\ErrorFacts.cs (1)
2267
case ErrorCode.
ERR_RefAssignReturnOnly
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (22)
Semantics\RefFieldTests.cs (22)
2445
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "r2.F = ref r1").WithArguments("F", "r1").WithLocation(15, 9));
2591
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "F = ref t").WithArguments("F", "t").WithLocation(7, 9),
2594
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "r1.F = ref t").WithArguments("F", "t").WithLocation(12, 9),
2604
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "F = ref t").WithArguments("F", "t").WithLocation(7, 9),
2607
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "r1.F = ref t").WithArguments("F", "t").WithLocation(12, 9),
6730
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "s.F = ref tRef").WithArguments("F", "tRef").WithLocation(10, 59),
6742
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "sRef.F = ref tRef").WithArguments("F", "tRef").WithLocation(15, 64),
6853
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "s.F = ref tRef").WithArguments("F", "tRef").WithLocation(10, 59),
6859
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "s.F = ref tIn").WithArguments("F", "tIn").WithLocation(12, 59),
6865
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "sRef.F = ref tRef").WithArguments("F", "tRef").WithLocation(15, 64),
6871
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "sRef.F = ref tIn").WithArguments("F", "tIn").WithLocation(17, 64),
9380
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "r.Next = ref r").WithArguments("Next", "r").WithLocation(11, 9));
19558
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "_i = ref i").WithArguments("_i", "i").WithLocation(11, 9));
19584
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "_i = ref i").WithArguments("_i", "i").WithLocation(12, 9));
22080
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "value.F = ref this").WithArguments("F", "this").WithLocation(20, 15));
23546
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "_i = ref i1").WithArguments("_i", "i1").WithLocation(7, 9),
23549
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "_i = ref i2").WithArguments("_i", "i2").WithLocation(11, 9),
23555
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "_i = ref i6").WithArguments("_i", "i6").WithLocation(29, 9));
27241
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "p2.refField = ref p1.refField").WithArguments("refField", "p1.refField").WithLocation(20, 5),
27244
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(26, 5),
27247
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "p2.refField = ref p1.refField").WithArguments("refField", "p1.refField").WithLocation(27, 5),
27431
Diagnostic(ErrorCode.
ERR_RefAssignReturnOnly
, "p.refField = ref this.field").WithArguments("refField", "this.field").WithLocation(19, 9),