39 references to ERR_LocalSameNameAsTypeParam
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_NameConflicts.cs (1)
84
diagnostics.Add(ErrorCode.
ERR_LocalSameNameAsTypeParam
, GetLocation(p), name);
Binder\InMethodBinder.cs (1)
303
diagnostics.Add(ErrorCode.
ERR_LocalSameNameAsTypeParam
, newLocation, name);
Errors\ErrorFacts.cs (2)
869
or ErrorCode.
ERR_LocalSameNameAsTypeParam
2572
case ErrorCode.
ERR_LocalSameNameAsTypeParam
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (35)
Semantics\LambdaTests.cs (12)
3160
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(9, 36),
3163
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(10, 29),
3166
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(11, 37),
3169
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(12, 34),
3313
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(9, 41),
3316
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(10, 45),
3319
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(11, 39),
3361
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(15, 40),
3364
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(16, 33));
3504
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(15, 37));
3543
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(13, 41),
3549
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(18, 39));
Semantics\LocalFunctionTests.cs (17)
2167
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(37, 17),
2170
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "V").WithArguments("V").WithLocation(43, 21),
2173
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(54, 25),
2191
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(37, 17),
2194
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "V").WithArguments("V").WithLocation(43, 21),
2467
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "TLocal").WithArguments("TLocal").WithLocation(6, 14),
5582
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(10, 32),
5585
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "y").WithArguments("y").WithLocation(10, 42));
5758
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(8, 28),
5761
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(9, 24),
5764
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(10, 26),
5863
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(20, 14));
5932
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(10, 29),
9117
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "parameter").WithArguments("parameter").WithLocation(9, 36),
9120
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "parameter").WithArguments("parameter").WithLocation(13, 29)
9692
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "TParameter").WithArguments("TParameter").WithLocation(8, 61),
9695
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "TParameter").WithArguments("TParameter").WithLocation(11, 54)
Semantics\NameCollisionTests.cs (4)
458
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "name4").WithArguments("name4").WithLocation(4, 51),
461
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "name3").WithArguments("name3").WithLocation(7, 17),
464
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "name3").WithArguments("name3").WithLocation(18, 26),
470
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "name3").WithArguments("name3"));
Semantics\SemanticErrorTests.cs (2)
10732
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_LocalSameNameAsTypeParam
, Line = 7, Column = 26 },
10733
new ErrorDescription { Code = (int)ErrorCode.
ERR_LocalSameNameAsTypeParam
, Line = 14, Column = 16 } });