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)
13028Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").WithLocation(7, 18),
13031Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f").WithLocation(8, 18)
13131Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15),
13134Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15)
13163Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36),
13166Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40)
13388Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(6, 29),
13391Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 29)
13440Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(9, 50),
13443Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(10, 50)
13481Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15),
13484Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15)
13534Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(12, 15),
13537Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(13, 15)
13576Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36),
13579Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40)
14868Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(5, 19),
14871Diagnostic(ErrorCode.ERR_FixedNeeded, "&y").WithLocation(6, 19)
15305Diagnostic(ErrorCode.ERR_FixedNeeded, "&x.F").WithLocation(5, 19),
15308Diagnostic(ErrorCode.ERR_FixedNeeded, "&y.F").WithLocation(6, 19)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (29)
Semantics\UnsafeTests.cs (23)
586Diagnostic(ErrorCode.ERR_FixedNeeded, "&_f").WithLocation(8, 22));
6643Diagnostic(ErrorCode.ERR_FixedNeeded, "&this").WithLocation(76, 18),
6649Diagnostic(ErrorCode.ERR_FixedNeeded, "&array[0]").WithLocation(24, 13),
6658Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.f").WithLocation(27, 13),
6685Diagnostic(ErrorCode.ERR_FixedNeeded, "&instanceField").WithLocation(36, 13),
6688Diagnostic(ErrorCode.ERR_FixedNeeded, "&staticField").WithLocation(37, 13),
6712Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.instanceField").WithLocation(45, 13),
6733Diagnostic(ErrorCode.ERR_FixedNeeded, "&E").WithLocation(54, 17),
6873Diagnostic(ErrorCode.ERR_FixedNeeded, "&instanceField"),
6876Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.instanceField"),
6879Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.instanceField"),
6882Diagnostic(ErrorCode.ERR_FixedNeeded, "&d.instanceField"),
6885Diagnostic(ErrorCode.ERR_FixedNeeded, "&staticField"),
6888Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.staticField"),
6891Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.staticField"),
6894Diagnostic(ErrorCode.ERR_FixedNeeded, "&d.staticField"),
6897Diagnostic(ErrorCode.ERR_FixedNeeded, "&array[0]"),
6900Diagnostic(ErrorCode.ERR_FixedNeeded, "&refParam"),
6903Diagnostic(ErrorCode.ERR_FixedNeeded, "&outParam"));
9804Diagnostic(ErrorCode.ERR_FixedNeeded, "&p.x"),
12571Diagnostic(ErrorCode.ERR_FixedNeeded, "&p").WithLocation(6, 24)
12689Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f.Buf[0]").WithLocation(15, 18),
12692Diagnostic(ErrorCode.ERR_FixedNeeded, "&(s_f.Buf[0])").WithLocation(17, 18));