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)
13018Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").WithLocation(7, 18),
13021Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f").WithLocation(8, 18)
13121Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15),
13124Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15)
13153Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36),
13156Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40)
13378Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(6, 29),
13381Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 29)
13430Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(9, 50),
13433Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(10, 50)
13471Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(4, 15),
13474Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(5, 15)
13524Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(12, 15),
13527Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(13, 15)
13566Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(7, 36),
13569Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").WithLocation(7, 40)
14858Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").WithLocation(5, 19),
14861Diagnostic(ErrorCode.ERR_FixedNeeded, "&y").WithLocation(6, 19)
15295Diagnostic(ErrorCode.ERR_FixedNeeded, "&x.F").WithLocation(5, 19),
15298Diagnostic(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));