64 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)
899
or ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
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 (1)
6112
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(3, 38));
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)
100529
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(8, 59),
100532
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 58)
100573
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 57),
100576
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(8, 59)
100618
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 58),
100621
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class?").WithLocation(8, 59)
100954
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 53)
150079
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(5, 55),
150088
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(6, 54),
150097
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(7, 44),
150106
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(8, 41),
150124
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(10, 44),
150136
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(11, 46));
150151
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(5, 55),
150157
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(6, 54),
150163
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(7, 44),
150169
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(8, 41),
150181
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(10, 44),
150190
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(11, 46));
150245
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(19, 58),
150248
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(20, 57),
150257
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(24, 59),
150260
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(25, 59));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Parsing\DeclarationParsingTests.cs (4)
8927
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(2, 23),
8936
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(3, 24) }
8943
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(2, 23),
8949
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));