221 references to ERR_FeatureInPreview
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2000
or ErrorCode.
ERR_FeatureInPreview
Errors\MessageID.cs (1)
478
? new CSDiagnosticInfo(ErrorCode.
ERR_FeatureInPreview
, feature.Localize())
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (206)
UnionsTests.cs (82)
985
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(47, 21),
988
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(52, 21),
991
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "11").WithArguments("unions").WithLocation(52, 27),
994
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(57, 21),
997
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "null").WithArguments("unions").WithLocation(62, 21),
1000
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(67, 21)
2004
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> { Value: 10 }").WithArguments("unions").WithLocation(44, 21),
2007
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> { Value: 10 or 11 }").WithArguments("unions").WithLocation(49, 21),
2010
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"S2<string> { Value: ""11"" }").WithArguments("unions").WithLocation(54, 21),
2013
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<object> { Value: not A or B }").WithArguments("unions").WithLocation(58, 21),
2107
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> { Value: 10 }").WithArguments("unions").WithLocation(47, 21),
2110
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> { Value: 10 or 11 }").WithArguments("unions").WithLocation(52, 21),
2113
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"S2<string> { Value: ""11"" }").WithArguments("unions").WithLocation(57, 21),
2116
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<object> { Value: not A or B }").WithArguments("unions").WithLocation(58, 21),
2252
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(_, 10)").WithArguments("unions").WithLocation(27, 21),
2255
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(_, 10)").WithArguments("unions").WithLocation(32, 21)
2335
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> (10, _)").WithArguments("unions").WithLocation(50, 21),
2338
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> (10 or 11, _)").WithArguments("unions").WithLocation(55, 21),
2341
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"S2<string> (""11"", _)").WithArguments("unions").WithLocation(60, 21)
2424
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> (10, _)").WithArguments("unions").WithLocation(53, 21),
2427
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> (10 or 11, _)").WithArguments("unions").WithLocation(58, 21),
2430
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"S2<string> (""11"", _)").WithArguments("unions").WithLocation(63, 21)
2522
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "u is int").WithArguments("unions").WithLocation(29, 16),
2525
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "u is int").WithArguments("unions").WithLocation(34, 16)
2578
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int").WithArguments("unions").WithLocation(28, 27),
2581
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "string").WithArguments("unions").WithLocation(33, 21)
2636
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int").WithArguments("unions").WithLocation(30, 27),
2639
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "string").WithArguments("unions").WithLocation(35, 21)
2694
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int x").WithArguments("unions").WithLocation(30, 21),
2697
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int x").WithArguments("unions").WithLocation(35, 21)
2754
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int x").WithArguments("unions").WithLocation(32, 21),
2757
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int x").WithArguments("unions").WithLocation(37, 21)
2843
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not 10").WithArguments("unions").WithLocation(46, 21),
2846
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not (10 or 11)").WithArguments("unions").WithLocation(51, 21),
2849
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"not (""11"" and ['1', '1'])").WithArguments("unions").WithLocation(56, 21),
2852
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not null").WithArguments("unions").WithLocation(61, 21),
2855
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not ({ } and int)").WithArguments("unions").WithLocation(66, 21)
2946
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not 10").WithArguments("unions").WithLocation(51, 21),
2949
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not (10 or 11)").WithArguments("unions").WithLocation(56, 21),
2952
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"not (""11"" and ['1', '1'])").WithArguments("unions").WithLocation(61, 21),
2955
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not null").WithArguments("unions").WithLocation(66, 21),
2958
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not ({ } and int)").WithArguments("unions").WithLocation(71, 21)
3412
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(33, 21),
3415
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(33, 27),
3418
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(38, 21),
3421
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(38, 27)
3521
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(27, 18),
3524
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(37, 18)
3920
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(10)").WithArguments("unions").WithLocation(40, 21),
3923
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(45, 22),
3926
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "11").WithArguments("unions").WithLocation(45, 28),
3929
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(50, 22),
3932
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(null)").WithArguments("unions").WithLocation(55, 21)
4011
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(10)").WithArguments("unions").WithLocation(44, 21),
4014
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(49, 22),
4017
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "11").WithArguments("unions").WithLocation(49, 28),
4020
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(54, 22),
4023
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(null)").WithArguments("unions").WithLocation(59, 21)
4078
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, ">=10").WithArguments("unions").WithLocation(30, 21),
4081
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "<10").WithArguments("unions").WithLocation(35, 21),
4084
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "11").WithArguments("unions").WithLocation(35, 28)
4141
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, ">=10").WithArguments("unions").WithLocation(32, 21),
4144
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "<10").WithArguments("unions").WithLocation(37, 21),
4147
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "11").WithArguments("unions").WithLocation(37, 28)
4252
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(31, 22)
4346
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(32, 27)
4443
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(29, 22),
4446
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(34, 22)
4498
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(23, 29)
4549
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(23, 22)
4642
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(23, 26)
4728
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(24, 33)
5072
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(35, 18),
5075
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(36, 18),
5078
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(46, 18),
5081
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(47, 18)
8665
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(37, 27),
8668
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "null").WithArguments("unions").WithLocation(55, 16),
8671
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(61, 16)
8977
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(S1)10").WithArguments("unions").WithLocation(37, 27),
8980
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(S1)null").WithArguments("unions").WithLocation(55, 16),
8983
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"(S1)""11""").WithArguments("unions").WithLocation(61, 16)
UnsafeEvolutionTests.cs (124)
865
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
890
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "GetPointer()").WithArguments("updated memory safety rules").WithLocation(1, 9),
893
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1));
938
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(6, 9));
1039
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 11),
1042
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "X").WithArguments("updated memory safety rules").WithLocation(2, 1));
1134
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1137
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 10),
1140
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "*").WithArguments("updated memory safety rules").WithLocation(2, 9));
1201
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(6, 9),
1204
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(7, 18),
1207
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "*").WithArguments("updated memory safety rules").WithLocation(7, 17));
1290
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1343
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1346
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 12),
1349
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "->").WithArguments("updated memory safety rules").WithLocation(2, 13));
1408
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1461
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1464
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 14),
1467
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "*").WithArguments("updated memory safety rules").WithLocation(2, 13));
1492
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1552
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1555
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1558
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "[").WithArguments("updated memory safety rules").WithLocation(2, 2),
1561
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 9),
1564
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "[").WithArguments("updated memory safety rules").WithLocation(3, 10));
1630
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1633
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1639
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 9),
1700
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1703
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1706
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[0]").WithArguments("updated memory safety rules").WithLocation(2, 1),
1709
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[0] = null").WithArguments("updated memory safety rules").WithLocation(2, 1),
1712
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 5),
1715
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[1]").WithArguments("updated memory safety rules").WithLocation(3, 5),
1718
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "_ = x[1]").WithArguments("updated memory safety rules").WithLocation(3, 1));
1784
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1787
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1793
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 5),
1825
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1862
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1953
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 11),
1956
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "X").WithArguments("updated memory safety rules").WithLocation(2, 1));
2062
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1),
2065
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x()").WithArguments("updated memory safety rules").WithLocation(2, 12));
2090
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1));
2147
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 11),
2150
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "X").WithArguments("updated memory safety rules").WithLocation(2, 1),
2153
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x()").WithArguments("updated memory safety rules").WithLocation(3, 12));
2198
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1),
2201
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "&x").WithArguments("updated memory safety rules").WithLocation(2, 10));
2254
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1),
2349
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "string*").WithArguments("updated memory safety rules").WithLocation(2, 1),
2355
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "&s").WithArguments("updated memory safety rules").WithLocation(2, 13),
2469
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "fixed (int* p = &x) { }").WithArguments("updated memory safety rules").WithLocation(6, 9),
2472
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(6, 16),
2475
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "&x").WithArguments("updated memory safety rules").WithLocation(6, 25));
2530
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "fixed (int* p = new S()) { }").WithArguments("updated memory safety rules").WithLocation(5, 9),
2533
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(5, 16));
2589
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "fixed (int* p = &x) { }").WithArguments("updated memory safety rules").WithLocation(2, 1),
2592
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 8),
2732
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "fixed (string* p1 = &x) { }").WithArguments("updated memory safety rules").WithLocation(6, 9),
2735
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "string*").WithArguments("updated memory safety rules").WithLocation(6, 16),
2744
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "&x").WithArguments("updated memory safety rules").WithLocation(6, 29),
2828
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
2831
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(2, 1),
2834
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p++").WithArguments("updated memory safety rules").WithLocation(2, 1),
2837
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(3, 1),
2840
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(3, 11),
2843
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p + 2").WithArguments("updated memory safety rules").WithLocation(3, 11),
2846
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(4, 10),
2849
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(4, 14),
2852
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(5, 10),
2855
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p2").WithArguments("updated memory safety rules").WithLocation(5, 14));
2899
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "sizeof(nint)").WithArguments("updated memory safety rules").WithLocation(2, 5),
2902
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "sizeof(S)").WithArguments("updated memory safety rules").WithLocation(3, 5));
2964
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "sizeof(string)").WithArguments("updated memory safety rules").WithLocation(1, 5),
3032
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1),
3035
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s.y").WithArguments("updated memory safety rules").WithLocation(2, 10),
3038
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s.x").WithArguments("updated memory safety rules").WithLocation(3, 9),
3041
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "[").WithArguments("updated memory safety rules").WithLocation(3, 12),
3044
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[5]").WithArguments("updated memory safety rules").WithLocation(7, 22));
3150
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
3153
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "stackalloc int[3]").WithArguments("updated memory safety rules").WithLocation(1, 10),
3156
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "stackalloc int[5]").WithArguments("updated memory safety rules").WithLocation(8, 26),
3458
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "_ = new X<string*[]>()").WithArguments("updated memory safety rules").WithLocation(1, 1),
3461
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "new X<string*[]>()").WithArguments("updated memory safety rules").WithLocation(1, 5),
3464
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "string*").WithArguments("updated memory safety rules").WithLocation(1, 11),
3473
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "string*").WithArguments("updated memory safety rules").WithLocation(6, 15),
3572
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(2, 2),
3575
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(5, 6),
3578
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(6, 6),
3581
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(8, 6),
3584
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(9, 6),
3587
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(10, 6),
3590
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(11, 6),
3593
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(12, 6));
3674
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "c.M()").WithArguments("updated memory safety rules").WithLocation(2, 1));
3685
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(3, 6));
4149
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(4, 6),
4152
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(5, 6),
4158
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "new C().M1()").WithArguments("updated memory safety rules").WithLocation(1, 1));
6296
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "unsafe").WithArguments("updated memory safety rules").WithLocation(3, 21),
6299
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "unsafe").WithArguments("updated memory safety rules").WithLocation(4, 26));
6874
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "unsafe").WithArguments("updated memory safety rules").WithLocation(3, 30),
6877
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "unsafe").WithArguments("updated memory safety rules").WithLocation(4, 51));
9279
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "M2").WithArguments("updated memory safety rules").WithLocation(8, 24),
9282
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "M3").WithArguments("updated memory safety rules").WithLocation(9, 51),
9285
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "M4").WithArguments("updated memory safety rules").WithLocation(10, 69));
9773
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "F").WithArguments("updated memory safety rules").WithLocation(7, 28));
9872
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P2").WithArguments("updated memory safety rules").WithLocation(8, 23),
9875
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(8, 28),
9878
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P3").WithArguments("updated memory safety rules").WithLocation(9, 30),
9881
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(9, 55),
9884
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P4").WithArguments("updated memory safety rules").WithLocation(10, 23),
9887
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(10, 73));
10082
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "this").WithArguments("updated memory safety rules").WithLocation(4, 23),
10085
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "get").WithArguments("updated memory safety rules").WithLocation(4, 37),
10088
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(4, 42));
10291
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "E").WithArguments("updated memory safety rules").WithLocation(5, 46),
10294
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "E").WithArguments("updated memory safety rules").WithLocation(5, 46),
10297
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "E").WithArguments("updated memory safety rules").WithLocation(5, 46));
10468
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "C").WithArguments("updated memory safety rules").WithLocation(4, 19));
10645
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "+=").WithArguments("updated memory safety rules").WithLocation(4, 33));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Semantics\CollectionExpressionTests_WithElement_Extra.cs (9)
38
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(1, 12),
66
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 19),
72
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 30),
103
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 16),
106
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 28),
155
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 5),
158
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(3, 5),
164
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(4, 5),
200
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(3, 9));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\NullConditionalAssignmentTests.cs (1)
123
.Where(diag => diag.Code == (int)ErrorCode.
ERR_FeatureInPreview
)
Semantics\UnsafeTests.cs (2)
2198
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "unsafe").WithArguments("updated memory safety rules").WithLocation(5, 9));
2221
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "unsafe").WithArguments("updated memory safety rules").WithLocation(5, 9));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
364
case ErrorCode.
ERR_FeatureInPreview
: