80 references to ERR_DefaultLiteralNoTargetType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
358
diagnostics.Add(ErrorCode.
ERR_DefaultLiteralNoTargetType
, defaultExpr.Syntax.GetLocation());
Errors\ErrorFacts.cs (1)
2022
or ErrorCode.
ERR_DefaultLiteralNoTargetType
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenAwaitForeachTests.cs (1)
6404
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(8, 33)
CodeGen\CodeGenForEachTests.cs (1)
2667
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(7, 27)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Semantics\CollectionExpressionTests.cs (1)
5833
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 22),
Semantics\ExtensionOperatorsTests.cs (5)
2030
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(20, 14),
15898
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(28, 19),
15901
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(29, 13),
15904
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(30, 13),
15907
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(30, 24)
Semantics\ExtensionTests.cs (6)
20691
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(1, 1),
20694
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(2, 5));
20780
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(1, 2),
20783
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(1, 11),
20786
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(2, 6),
20789
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(2, 15));
Semantics\RecordTests.cs (1)
1833
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(8, 13),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_ISwitchOperation.cs (1)
1623
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 13),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (59)
Semantics\NullableReferenceTypesTests.cs (12)
1480
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(9, 23),
1675
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(9, 17),
3648
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(10, 13),
3660
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(16, 13)
3884
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(5, 20),
3887
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(5, 36),
3899
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(9, 13),
3902
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(10, 13)
87798
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(5, 13)
88495
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(5, 14),
88498
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(5, 23),
88501
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 17),
Semantics\TargetTypedDefaultTests.cs (47)
513
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 16)
556
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 24),
599
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 23),
641
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 15)
738
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 17),
782
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 18),
785
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(7, 18),
788
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(8, 18),
791
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(9, 18)
998
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 9),
1001
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(7, 9),
1007
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(9, 15),
1020
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 9),
1026
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(7, 9),
1038
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(9, 15),
1199
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 17),
1202
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(11, 15),
1208
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(17, 33),
1344
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(22, 17),
1347
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(22, 28),
1350
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(23, 17),
1353
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(23, 28),
1356
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(24, 17),
1447
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(22, 17),
1450
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(23, 17),
1453
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(24, 17),
1456
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(25, 17),
1553
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(22, 22),
1556
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(23, 22),
2083
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 14)
2231
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 18),
2234
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(7, 17)
2632
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(7, 14)
2747
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 27),
2772
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 27),
2837
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 15)
2859
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 30),
2862
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(7, 30),
2865
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(8, 30)
2884
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 33),
2887
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 56)
2907
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 30)
2930
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 30),
2933
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(7, 30),
2936
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(8, 30),
2942
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(9, 30)
3032
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 47)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSemanticsTests.cs (1)
1831
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 59)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\StatementAttributeParsingTests.cs (2)
2631
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(9, 13),
4754
Diagnostic(ErrorCode.
ERR_DefaultLiteralNoTargetType
, "default").WithLocation(6, 12),