40 references to ERR_ManagedAddr
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
1546
diagnostics.Add(ErrorCode.
ERR_ManagedAddr
, location, type);
Errors\ErrorFacts.cs (1)
784
or ErrorCode.
ERR_ManagedAddr
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (38)
Semantics\NullableReferenceTypesTests.cs (2)
1390
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { null, string.Empty }").WithArguments("string").WithLocation(9, 35));
160786
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { M(o) }").WithArguments("D<object>").WithLocation(7, 11),
Semantics\RefFieldTests.cs (11)
1518
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "S2").WithArguments("S2").WithLocation(16, 29),
1521
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "C").WithArguments("C").WithLocation(17, 29),
1527
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "S2").WithArguments("S2").WithLocation(20, 29),
1533
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "C").WithArguments("C").WithLocation(21, 28)
1574
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { new S2() }").WithArguments("S2").WithLocation(16, 18),
1577
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { new C() }").WithArguments("C").WithLocation(17, 18),
1583
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { new S2() }").WithArguments("S2").WithLocation(20, 18),
1589
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc[] { new C() }").WithArguments("C").WithLocation(24, 17)
10270
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "StructWithRefField").WithArguments("StructWithRefField").WithLocation(4, 40),
10309
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "StructWithIndirectRefField").WithArguments("StructWithIndirectRefField").WithLocation(4, 48),
10349
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "StructWithIndirectRefField").WithArguments("StructWithIndirectRefField").WithLocation(4, 48)
Semantics\StackAllocInitializerTests.cs (17)
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),
1833
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(7, 29),
1839
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(8, 29),
1842
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc [ ] { d }").WithArguments("dynamic").WithLocation(9, 18),
1866
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(8, 39),
1872
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(9, 39),
1875
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "stackalloc [ ] { d }").WithArguments("dynamic").WithLocation(10, 28)
Semantics\StackAllocSpanExpressionsTests.cs (2)
613
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(6, 28)
631
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "dynamic").WithArguments("dynamic").WithLocation(7, 38)
Semantics\UnsafeTests.cs (4)
11122
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "int").WithArguments("int[]").WithLocation(8, 31),
11128
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "int").WithArguments("int[]").WithLocation(9, 31),
11134
Diagnostic(ErrorCode.
ERR_ManagedAddr
, "int").WithArguments("int[]").WithLocation(10, 31),
11140
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));