20 references to WRN_TypeParameterSameAsOuterMethodTypeParameter
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
429
case ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
:
1895
or ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
Generated\ErrorFacts.Generated.cs (1)
183
case ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
:
Symbols\Source\LocalFunctionSymbol.cs (1)
449
typeError = ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\LocalFunctionTests.cs (15)
2169
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M2<T>()").WithLocation(25, 23),
2172
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "V").WithArguments("V", "Local1<V>()").WithLocation(31, 28),
2184
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M2<T>()").WithLocation(67, 32));
2193
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M2<T>()").WithLocation(25, 23),
2196
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "V").WithArguments("V", "Local1<V>()").WithLocation(31, 28),
2205
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M2<T>()").WithLocation(67, 32));
3097
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "Outer<T>()").WithLocation(8, 21)
5464
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "@x").WithArguments("x", "Program.M<x>()").WithLocation(11, 17),
5473
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "@x").WithArguments("x", "Program.M<x>()").WithLocation(11, 17));
5632
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "Program.M<T>(object)").WithLocation(11, 21));
5638
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "Program.M<T>(object)").WithLocation(11, 21));
5669
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "Program.M<T>(object)").WithLocation(17, 28));
6444
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M<T>()").WithLocation(11, 19));
6488
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M<T>()").WithLocation(12, 19));
6535
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M<T>()").WithLocation(12, 19));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
281
case ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
: