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)
901
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)
22780
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(3, 38));
22951
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(3, 34));
25857
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(6, 28),
25860
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(7, 27),
25863
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)
100610
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(8, 59),
100613
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 58)
100654
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 57),
100657
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(8, 59)
100699
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 58),
100702
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class?").WithLocation(8, 59)
101035
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 53)
150191
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(5, 55),
150200
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(6, 54),
150209
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(7, 44),
150218
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(8, 41),
150236
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(10, 44),
150248
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(11, 46));
150263
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(5, 55),
150269
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(6, 54),
150275
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(7, 44),
150281
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(8, 41),
150293
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(10, 44),
150302
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(11, 46));
150357
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(19, 58),
150360
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(20, 57),
150369
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(24, 59),
150372
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));