39 references to ERR_LocalSameNameAsTypeParam
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_NameConflicts.cs (1)
74
diagnostics.Add(ErrorCode.
ERR_LocalSameNameAsTypeParam
, GetLocation(p), name);
Binder\InMethodBinder.cs (1)
296
diagnostics.Add(ErrorCode.
ERR_LocalSameNameAsTypeParam
, newLocation, name);
Errors\ErrorFacts.cs (2)
807
case ErrorCode.
ERR_LocalSameNameAsTypeParam
:
2345
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)
2175
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(37, 17),
2178
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "V").WithArguments("V").WithLocation(43, 21),
2181
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(54, 25),
2199
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(37, 17),
2202
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "V").WithArguments("V").WithLocation(43, 21),
2442
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "TLocal").WithArguments("TLocal").WithLocation(6, 14),
5195
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(10, 32),
5198
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "y").WithArguments("y").WithLocation(10, 42));
5371
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(8, 28),
5374
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(9, 24),
5377
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(10, 26),
5476
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(20, 14));
5545
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(10, 29),
8730
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "parameter").WithArguments("parameter").WithLocation(9, 36),
8733
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "parameter").WithArguments("parameter").WithLocation(13, 29)
9309
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "TParameter").WithArguments("TParameter").WithLocation(8, 61),
9312
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)
10683
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_LocalSameNameAsTypeParam
, Line = 7, Column = 26 },
10684
new ErrorDescription { Code = (int)ErrorCode.
ERR_LocalSameNameAsTypeParam
, Line = 14, Column = 16 } });