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
2565
case ErrorCode.
ERR_LocalSameNameAsTypeParam
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (35)
Semantics\LambdaTests.cs (12)
3163
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(9, 36),
3166
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(10, 29),
3169
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(11, 37),
3172
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(12, 34),
3316
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(9, 41),
3319
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(10, 45),
3322
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(11, 39),
3364
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(15, 40),
3367
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(16, 33));
3507
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(15, 37));
3546
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(13, 41),
3552
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),
2475
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "TLocal").WithArguments("TLocal").WithLocation(6, 14),
5279
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(10, 32),
5282
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "y").WithArguments("y").WithLocation(10, 42));
5455
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(8, 28),
5458
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(9, 24),
5461
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "x").WithArguments("x").WithLocation(10, 26),
5560
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(20, 14));
5629
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "T").WithArguments("T").WithLocation(10, 29),
8814
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "parameter").WithArguments("parameter").WithLocation(9, 36),
8817
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "parameter").WithArguments("parameter").WithLocation(13, 29)
9389
Diagnostic(ErrorCode.
ERR_LocalSameNameAsTypeParam
, "TParameter").WithArguments("TParameter").WithLocation(8, 61),
9392
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)
10687
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_LocalSameNameAsTypeParam
, Line = 7, Column = 26 },
10688
new ErrorDescription { Code = (int)ErrorCode.
ERR_LocalSameNameAsTypeParam
, Line = 14, Column = 16 } });