20 references to WRN_TypeParameterSameAsOuterMethodTypeParameter
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
428
case ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
:
1894
or ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
Generated\ErrorFacts.Generated.cs (1)
182
case ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
:
Symbols\Source\LocalFunctionSymbol.cs (1)
449
typeError = ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\LocalFunctionTests.cs (15)
2161
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M2<T>()").WithLocation(25, 23),
2164
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "V").WithArguments("V", "Local1<V>()").WithLocation(31, 28),
2176
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M2<T>()").WithLocation(67, 32));
2185
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M2<T>()").WithLocation(25, 23),
2188
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "V").WithArguments("V", "Local1<V>()").WithLocation(31, 28),
2197
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M2<T>()").WithLocation(67, 32));
3402
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "Outer<T>()").WithLocation(8, 21)
5767
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "@x").WithArguments("x", "Program.M<x>()").WithLocation(11, 17),
5776
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "@x").WithArguments("x", "Program.M<x>()").WithLocation(11, 17));
5935
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "Program.M<T>(object)").WithLocation(11, 21));
5941
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "Program.M<T>(object)").WithLocation(11, 21));
5972
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "Program.M<T>(object)").WithLocation(17, 28));
6747
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M<T>()").WithLocation(11, 19));
6791
Diagnostic(ErrorCode.
WRN_TypeParameterSameAsOuterMethodTypeParameter
, "T").WithArguments("T", "C.M<T>()").WithLocation(12, 19));
6838
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
: