57 references to ERR_TypeConstraintsMustBeUniqueAndFirst
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Constraints.cs (1)
319
diagnostics.Add(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, syntax.GetLocation());
Errors\ErrorFacts.cs (1)
837
case ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
:
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));
4187
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(2, 32),
4190
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(2, 40),
4193
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(2, 51),
4196
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(4, 37),
4199
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(4, 45),
4202
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 56),
4205
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(6, 33),
4208
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(6, 40),
4211
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(6, 51),
4214
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(8, 38),
4217
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "unmanaged").WithLocation(8, 45),
4220
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(8, 56),
4223
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(10, 32),
4226
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)
96759
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(8, 59),
96762
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 58)
96803
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 57),
96806
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(8, 59)
96848
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 58),
96851
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class?").WithLocation(8, 59)
97184
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(4, 53)
145649
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(5, 55),
145658
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(6, 54),
145667
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(7, 44),
145676
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(8, 41),
145694
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(10, 44),
145706
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(11, 46));
145721
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(5, 55),
145727
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(6, 54),
145733
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(7, 44),
145739
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(8, 41),
145751
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "notnull").WithLocation(10, 44),
145760
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(11, 46));
145815
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(19, 58),
145818
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(20, 57),
145827
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "struct").WithLocation(24, 59),
145830
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(25, 59));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Parsing\DeclarationParsingTests.cs (4)
9022
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(2, 23),
9031
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "class").WithLocation(3, 24) }
9038
Diagnostic(ErrorCode.
ERR_TypeConstraintsMustBeUniqueAndFirst
, "default").WithLocation(2, 23),
9044
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));