46 references to ERR_ManagedAddr
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
1605
diagnostics.Add(ErrorCode.
ERR_ManagedAddr
, location, type);
Errors\ErrorFacts.cs (1)
796
or ErrorCode.
ERR_ManagedAddr
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (3)
UnsafeEvolutionTests.cs (3)
3235
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "string").WithArguments("string").WithLocation(1, 45),
3241
Diagnostic(ErrorCode.
ERR_ManagedAddr
, @"stackalloc[] { ""a"" }").WithArguments("string").WithLocation(2, 22),
3244
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "string").WithArguments("string").WithLocation(8, 40),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (41)
Semantics\NullableReferenceTypesTests.cs (2)
1390
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { null, string.Empty }").WithArguments("string").WithLocation(9, 35));
160892
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { M(o) }").WithArguments("D<object>").WithLocation(7, 11),
Semantics\RefFieldTests.cs (11)
1590
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "S2").WithArguments("S2").WithLocation(16, 29),
1593
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "C").WithArguments("C").WithLocation(17, 29),
1599
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "S2").WithArguments("S2").WithLocation(20, 29),
1605
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "C").WithArguments("C").WithLocation(21, 28)
1646
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { new S2() }").WithArguments("S2").WithLocation(16, 18),
1649
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { new C() }").WithArguments("C").WithLocation(17, 18),
1655
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { new S2() }").WithArguments("S2").WithLocation(20, 18),
1661
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { new C() }").WithArguments("C").WithLocation(24, 17)
10342
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "StructWithRefField").WithArguments("StructWithRefField").WithLocation(4, 40),
10381
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "StructWithIndirectRefField").WithArguments("StructWithIndirectRefField").WithLocation(4, 48),
10421
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "StructWithIndirectRefField").WithArguments("StructWithIndirectRefField").WithLocation(4, 48)
Semantics\StackAllocInitializerTests.cs (20)
64
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "RefG<string>").WithArguments("RefG<string>").WithLocation(10, 29),
67
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "System.TypedReference").WithArguments("System.TypedReference").WithLocation(12, 29),
159
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { () => { } }").WithArguments("System.Action").WithLocation(14, 18),
165
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { d }").WithArguments("dynamic").WithLocation(16, 18),
221
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { () => { } }").WithArguments("System.Action").WithLocation(14, 32),
227
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { d }").WithArguments("dynamic").WithLocation(16, 32),
358
Diagnostic(ErrorCode.
ERR_ManagedAddr
, @"stackalloc[] { """" }").WithArguments("string").WithLocation(7, 20),
361
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { new {} }").WithArguments("<empty anonymous type>").WithLocation(8, 20)
431
Diagnostic(ErrorCode.
ERR_ManagedAddr
, @"stackalloc[] { """" }").WithArguments("string").WithLocation(7, 34),
434
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { new {} }").WithArguments("<empty anonymous type>").WithLocation(8, 34),
909
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "int").WithArguments("int[]").WithLocation(6, 31),
1838
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(7, 29),
1844
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(8, 29),
1847
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc [ ] { d }").WithArguments("dynamic").WithLocation(9, 18),
1857
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(7, 29),
1863
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(8, 29),
1866
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc [ ] { d }").WithArguments("dynamic").WithLocation(9, 18)
1890
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(8, 39),
1896
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(9, 39),
1899
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc [ ] { d }").WithArguments("dynamic").WithLocation(10, 28)
Semantics\StackAllocSpanExpressionsTests.cs (2)
617
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(6, 28)
635
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(7, 38)
Semantics\UnsafeTests.cs (4)
11250
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "int").WithArguments("int[]").WithLocation(8, 31),
11256
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "int").WithArguments("int[]").WithLocation(9, 31),
11262
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "int").WithArguments("int[]").WithLocation(10, 31),
11268
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "int").WithArguments("int[]").WithLocation(11, 31),
Semantics\UseSiteErrorTests.cs (2)
2576
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "S2").WithArguments("S2").WithLocation(6, 31),
2588
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc [] { default(S2) }").WithArguments("S2").WithLocation(7, 21));