65 references to ERR_FixedNeeded
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenRefReadonlyReturnTests.cs (4)
692Diagnostic(ErrorCode.ERR_FixedNeeded, "& M()").WithLocation(6, 18),
695Diagnostic(ErrorCode.ERR_FixedNeeded, "& M1().Alice").WithLocation(7, 18),
698Diagnostic(ErrorCode.ERR_FixedNeeded, "& P").WithLocation(9, 19),
701Diagnostic(ErrorCode.ERR_FixedNeeded, "& P1.Alice").WithLocation(10, 19)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (22)
Semantics\PrimaryConstructorTests.cs (20)
13158Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").WithLocation(7, 18),
13161Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f").WithLocation(8, 18)
13261Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15),
13264Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15)
13293Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36),
13296Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40)
13518Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(6, 29),
13521Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 29)
13570Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(9, 50),
13573Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(10, 50)
13611Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15),
13614Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15)
13664Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(12, 15),
13667Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(13, 15)
13706Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36),
13709Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40)
14998Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(5, 19),
15001Diagnostic(ErrorCode.ERR_FixedNeeded, "&y").WithLocation(6, 19)
15435Diagnostic(ErrorCode.ERR_FixedNeeded, "&x.F").WithLocation(5, 19),
15438Diagnostic(ErrorCode.ERR_FixedNeeded, "&y.F").WithLocation(6, 19)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (29)
Semantics\UnsafeTests.cs (23)
587Diagnostic(ErrorCode.ERR_FixedNeeded, "&_f").WithLocation(8, 22));
6644Diagnostic(ErrorCode.ERR_FixedNeeded, "&this").WithLocation(76, 18),
6650Diagnostic(ErrorCode.ERR_FixedNeeded, "&array[0]").WithLocation(24, 13),
6659Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.f").WithLocation(27, 13),
6686Diagnostic(ErrorCode.ERR_FixedNeeded, "&instanceField").WithLocation(36, 13),
6689Diagnostic(ErrorCode.ERR_FixedNeeded, "&staticField").WithLocation(37, 13),
6713Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.instanceField").WithLocation(45, 13),
6734Diagnostic(ErrorCode.ERR_FixedNeeded, "&E").WithLocation(54, 17),
6874Diagnostic(ErrorCode.ERR_FixedNeeded, "&instanceField"),
6877Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.instanceField"),
6880Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.instanceField"),
6883Diagnostic(ErrorCode.ERR_FixedNeeded, "&d.instanceField"),
6886Diagnostic(ErrorCode.ERR_FixedNeeded, "&staticField"),
6889Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.staticField"),
6892Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.staticField"),
6895Diagnostic(ErrorCode.ERR_FixedNeeded, "&d.staticField"),
6898Diagnostic(ErrorCode.ERR_FixedNeeded, "&array[0]"),
6901Diagnostic(ErrorCode.ERR_FixedNeeded, "&refParam"),
6904Diagnostic(ErrorCode.ERR_FixedNeeded, "&outParam"));
9805Diagnostic(ErrorCode.ERR_FixedNeeded, "&p.x"),
12575Diagnostic(ErrorCode.ERR_FixedNeeded, "&p").WithLocation(6, 24)
12693Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f.Buf[0]").WithLocation(15, 18),
12696Diagnostic(ErrorCode.ERR_FixedNeeded, "&(s_f.Buf[0])").WithLocation(17, 18));