68 references to ERR_TypeConstraintsMustBeUniqueAndFirst
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Constraints.cs (1)
361
diagnostics.Add(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, syntax.GetLocation());
Errors\ErrorFacts.cs (1)
911
or ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
RefStructInterfacesTests.cs (6)
4542
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(3, 34)
4596
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(3, 34)
4654
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(3, 34)
4689
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(5, 38)
4847
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(3, 34)
4898
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(3, 34)
Semantics\ExtensionTests2.cs (5)
24346
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(3, 38));
24517
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(3, 34));
27423
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(6, 28),
27426
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(7, 27),
27429
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(8, 31));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (48)
Semantics\GenericConstraintsTests.cs (19)
1833
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(1, 39));
1851
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(1, 40));
1886
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(1, 50));
1895
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(1, 65));
1921
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(1, 38));
4370
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(2, 32),
4373
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(2, 40),
4376
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(2, 51),
4379
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(4, 37),
4382
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(4, 45),
4385
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 56),
4388
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(6, 33),
4391
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(6, 40),
4394
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(6, 51),
4397
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(8, 38),
4400
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(8, 45),
4403
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(8, 56),
4406
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(10, 32),
4409
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(12, 37)
Semantics\InheritanceBindingTests.cs (6)
9077
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(8, 60));
9099
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(8, 59));
9119
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(9, 60));
9141
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(8, 46));
9163
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(8, 45));
9183
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(9, 46));
Semantics\NullableReferenceTypesTests.cs (23)
100601
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(8, 59),
100604
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 58)
100645
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 57),
100648
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(8, 59)
100690
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 58),
100693
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class?").WithLocation(8, 59)
101026
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 53)
150182
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(5, 55),
150191
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(6, 54),
150200
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(7, 44),
150209
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(8, 41),
150227
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(10, 44),
150239
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(11, 46));
150254
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(5, 55),
150260
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(6, 54),
150266
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(7, 44),
150272
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(8, 41),
150284
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(10, 44),
150293
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(11, 46));
150348
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(19, 58),
150351
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(20, 57),
150360
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(24, 59),
150363
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(25, 59));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Parsing\DeclarationParsingTests.cs (4)
8981
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(2, 23),
8990
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(3, 24) }
8997
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(2, 23),
9003
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(3, 24) });
Parsing\ParserErrorMessageTests.cs (3)
881
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(5, 41),
884
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(6, 37),
887
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(7, 37));