257 references to ERR_CantInferMethTypeArgs
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
737
ErrorCode.
ERR_CantInferMethTypeArgs
,
Errors\ErrorFacts.cs (1)
806
case ErrorCode.
ERR_CantInferMethTypeArgs
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (17)
CodeGen\CodeGenDeconstructTests.cs (2)
2525
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "new C()").WithArguments("Extension.Deconstruct<T>(C, out int, out T)").WithLocation(8, 18),
2624
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "new C1()").WithArguments("C1.Deconstruct<T>(out int, out T)").WithLocation(9, 18),
CodeGen\CodeGenExprLambdaTests.cs (1)
4325
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "GenericMethod").WithArguments("MemberInitializerTest.GenericMethod<T>()").WithLocation(9, 29));
CodeGen\CodeGenForEachTests.cs (2)
3409
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "new object()").WithArguments("Extensions.GetEnumerator<T>(object)").WithLocation(8, 27),
3440
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "new object()").WithArguments("Extensions.GetEnumerator<T>(object, params T[])").WithLocation(8, 27),
CodeGen\CodeGenFunctionPointersTests.cs (2)
3849
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "C.M1").WithArguments("C.M1<T>(int)").WithLocation(9, 38),
3852
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "C.M2").WithArguments("C.M2<T>()").WithLocation(10, 35)
CodeGen\CodeGenTupleTest.cs (9)
9818
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("C.Test1<T>(ref T, T)").WithLocation(10, 9)
9855
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test3").WithArguments("C.Test3<T>(ref T, ref T)").WithLocation(17, 18)
10037
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("C.Test1<T>(ref T, T, T, T)").WithLocation(10, 18)
10276
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("C.Test1<T, U>((T, U)?, (T, U?))").WithLocation(7, 9),
10279
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("C.Test1<T, U>((T, U)?, (T, U?))").WithLocation(8, 9),
10282
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("C.Test1<T, U>((T, U)?, (T, U?))").WithLocation(9, 9)
18833
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test").WithArguments("Program.Test<T>(System.Action<T>, System.Action<T>)").WithLocation(22, 9),
19587
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("C.M2<T>(System.Func<T>)").WithLocation(6, 18)
26166
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("C.M1<T1, T2, T3, T4, T5, T6, T7, TRest>(System.ValueTuple<System.Func<T1>, System.Func<T2>, System.Func<T3>, System.Func<T4>, System.Func<T5>, System.Func<T6>, System.Func<T7>, TRest>)").WithLocation(6, 9)
CodeGen\UnsafeTests.cs (1)
5227
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "new Fixable(1)").WithArguments("Fixable.GetPinnableReference<T>()").WithLocation(6, 25),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (210)
Semantics\BindingAwaitTests.cs (3)
1574
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "await new A()").WithArguments("A.GetAwaiter<T>()"),
1577
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "await new B()").WithArguments("MyExtensions.GetAwaiter<T>(B)")
2454
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "await new A()").WithArguments("Awaiter.GetResult<T>()")
Semantics\BindingTests.cs (1)
3581
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "ExtensionMethod1").WithArguments("FooExtensions.ExtensionMethod1<T>(object)").WithLocation(25, 42),
Semantics\DelegateTypeTests.cs (87)
3567
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F0").WithArguments("Program.F0<T>(System.Action<T>)").WithLocation(10, 9)
3601
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(System.Action<T>)").WithLocation(10, 9)
3911
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T>(T, System.Func<object>)").WithLocation(9, 9),
3914
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T>(T, System.Func<object>)").WithLocation(10, 9));
4007
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T>(object, T)").WithLocation(9, 9),
4013
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T>(object, T)").WithLocation(11, 9));
4046
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T, U>(System.Func<T>, U)").WithLocation(9, 9),
4049
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T, U>(System.Func<T>, U)").WithLocation(11, 9));
5498
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Program.F1<T>(T)").WithLocation(9, 16),
5501
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F2").WithArguments("Program.F2<T>(T)").WithLocation(10, 16));
5605
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(9, 16),
5608
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(10, 16));
5638
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(9, 16),
5641
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(10, 16));
5676
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T>(T, T)").WithLocation(10, 18),
5679
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T>(T, T)").WithLocation(11, 18),
5682
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T>(T, T)").WithLocation(12, 18));
5718
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T>(T, T)").WithLocation(8, 18),
5721
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T>(T, T)").WithLocation(9, 18),
5724
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T>(T, T)").WithLocation(10, 18),
5727
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Program.M<T>(T, T)").WithLocation(11, 18));
5827
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(7, 16),
5830
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(8, 16));
6033
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Program.F1<T>(in T, T)").WithLocation(10, 16),
6036
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F2").WithArguments("Program.F2<T>(T, in T)").WithLocation(11, 16)
6052
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F2").WithArguments("Program.F2<T>(T, in T)").WithLocation(11, 16));
6074
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(7, 16));
6101
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(7, 16),
6104
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(8, 16),
6147
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(9, 16),
6150
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(10, 16));
6178
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(7, 16));
6184
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(7, 16));
6208
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(8, 16));
6215
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(8, 16));
6237
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(7, 16));
6243
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(7, 16));
6266
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(8, 16));
6272
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(8, 16));
6296
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(7, 16),
6299
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(8, 16),
6311
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(7, 16),
6314
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(8, 16));
6340
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(9, 16),
6343
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(10, 16));
6350
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(9, 16),
6353
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(T, T)").WithLocation(10, 16));
6374
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Program.F1<T>(T)").WithLocation(8, 12));
6381
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F2").WithArguments("Program.F2<T>(D<T>)").WithLocation(8, 9));
6402
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Program.F1<T>(T)").WithLocation(8, 12));
6409
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F2").WithArguments("Program.F2<T>(System.Linq.Expressions.Expression<T>)").WithLocation(8, 9));
6441
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(T)").WithLocation(10, 18),
6444
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("Program.M2<T>(T, T)").WithLocation(11, 18),
6447
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("Program.M2<T>(T, T)").WithLocation(12, 18),
6450
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(T)").WithLocation(13, 18),
6453
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("Program.M2<T>(T, T)").WithLocation(14, 18),
6456
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("Program.M2<T>(T, T)").WithLocation(15, 18));
6462
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(T)").WithLocation(10, 18),
6465
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(T)").WithLocation(13, 18));
6654
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Program.F1<T>(System.Func<T, T>, T)").WithLocation(9, 9),
6660
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F2").WithArguments("Program.F2<T>(System.Linq.Expressions.Expression<System.Func<T, T>>, T)").WithLocation(10, 9),
6669
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Program.F1<T>(System.Func<T, T>, T)").WithLocation(9, 9),
6672
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F2").WithArguments("Program.F2<T>(System.Linq.Expressions.Expression<System.Func<T, T>>, T)").WithLocation(10, 9)
6752
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Program.F1<T>(System.Func<T, T>)").WithLocation(16, 9),
6755
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F2").WithArguments("Program.F2<T>(System.Func<T, I<T>>)").WithLocation(17, 9),
6758
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F3").WithArguments("Program.F3<T>(System.Func<I<T>, T>)").WithLocation(18, 9),
6761
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F4").WithArguments("Program.F4<T>(System.Func<I<T>, I<T>>)").WithLocation(19, 9),
6764
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F5").WithArguments("Program.F5<T>(System.Linq.Expressions.Expression<System.Func<T, T>>)").WithLocation(20, 9),
6767
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F6").WithArguments("Program.F6<T>(System.Linq.Expressions.Expression<System.Func<T, I<T>>>)").WithLocation(21, 9),
6770
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F7").WithArguments("Program.F7<T>(System.Linq.Expressions.Expression<System.Func<I<T>, T>>)").WithLocation(22, 9),
6773
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F8").WithArguments("Program.F8<T>(System.Linq.Expressions.Expression<System.Func<I<T>, I<T>>>)").WithLocation(23, 9));
6808
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Program.F1<T>(System.Func<T, T>, System.Func<T, T>)").WithLocation(10, 9),
6823
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F2").WithArguments("Program.F2<T>(System.Linq.Expressions.Expression<System.Func<T, T>>, System.Linq.Expressions.Expression<System.Func<T, T>>)").WithLocation(12, 9),
6835
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Program.F1<T>(System.Func<T, T>, System.Func<T, T>)").WithLocation(10, 9),
6838
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F2").WithArguments("Program.F2<T>(System.Linq.Expressions.Expression<System.Func<T, T>>, System.Linq.Expressions.Expression<System.Func<T, T>>)").WithLocation(12, 9)
7069
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test3").WithArguments("Test3<T>(System.Func<System.Func<T>>)").WithLocation(11, 1),
7072
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test4").WithArguments("Test4<T>(System.Func<System.Linq.Expressions.Expression<System.Func<T>>>)").WithLocation(12, 1)
7166
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(System.Func<T>)").WithLocation(11, 9),
7169
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("Program.M2<T>(System.Linq.Expressions.Expression<System.Func<T>>)").WithLocation(12, 9),
7172
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(System.Func<T>)").WithLocation(13, 9),
7175
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("Program.M2<T>(System.Linq.Expressions.Expression<System.Func<T>>)").WithLocation(14, 9)
7214
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(System.Func<System.Func<T>>)").WithLocation(12, 9),
7217
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("Program.M2<T>(System.Func<System.Linq.Expressions.Expression<System.Func<T>>>)").WithLocation(13, 9),
7220
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M3").WithArguments("Program.M3<T>(System.Linq.Expressions.Expression<System.Func<System.Func<T>>>)").WithLocation(14, 9),
7223
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(System.Func<System.Func<T>>)").WithLocation(15, 9),
7226
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("Program.M2<T>(System.Func<System.Linq.Expressions.Expression<System.Func<T>>>)").WithLocation(16, 9),
7229
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M3").WithArguments("Program.M3<T>(System.Linq.Expressions.Expression<System.Func<System.Func<T>>>)").WithLocation(17, 9)
Semantics\DynamicTests.cs (1)
3664
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Goo").WithArguments("Program.Goo<T>(System.Func<T, T>)").WithLocation(10, 33)
Semantics\FunctionPointerTests.cs (37)
1635
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("C.M1<T>(delegate*<T, void>, delegate*<T, void>)").WithLocation(13, 9)
1668
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("C.M1<T>(delegate*<delegate*<T, void>, void>, delegate*<delegate*<T, void>, void>)").WithLocation(13, 9)
1701
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("C.M1<T>(delegate*<delegate*<T>, void>, delegate*<delegate*<T>, void>)").WithLocation(13, 9)
1730
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("C.M1<T>(delegate*<T, void>, delegate*<T, void>)").WithLocation(9, 9)
1795
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("C.M1<T>(delegate*<T>, delegate*<T>)").WithLocation(13, 9)
1828
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("C.M1<T>(delegate*<delegate*<T, void>>, delegate*<delegate*<T, void>>)").WithLocation(13, 9)
1861
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("C.M1<T>(delegate*<delegate*<T>>, delegate*<delegate*<T>>)").WithLocation(13, 9)
1890
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("C.M1<T>(delegate*<T>, delegate*<T>)").WithLocation(9, 9)
2182
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("D.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(18, 9),
2185
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("D.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(19, 9),
2194
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("D.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(27, 9),
2197
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("D.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(28, 9)
2251
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(10, 9),
2254
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(15, 9)
2312
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(11, 9),
2315
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(12, 9),
2318
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(13, 9),
2321
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(19, 9),
2324
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(20, 9),
2327
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").WithLocation(21, 9)
2736
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test").WithArguments("Test<T1, T2>(T2, delegate*<T1, T2>)").WithLocation(4, 5),
2763
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("Test1<T1, T2>(T1, delegate*<T1, T2>)").WithLocation(4, 5),
2766
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test2").WithArguments("Test2<T1, T2>(T2, delegate*<T1, T2>)").WithLocation(5, 5),
2795
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("Test1<T1, T2>(T1, delegate*<T1, T2>)").WithLocation(4, 5),
2798
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test2").WithArguments("Test2<T1, T2>(T2, delegate*<T1, T2>)").WithLocation(5, 5),
2829
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("Test1<T1, T2>(T1, System.Func<T1, T2>)").WithLocation(5, 5),
2832
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test2").WithArguments("Test2<T1, T2>(T2, System.Func<T1, T2>)").WithLocation(6, 5),
2862
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("Test1<T1>(delegate* unmanaged<T1, void>[])").WithLocation(5, 5),
2868
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("Test1<T1>(delegate* unmanaged<T1, void>[])").WithLocation(8, 5),
2895
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("Test1<T1, T2>(delegate*<T1, T2>[])").WithLocation(5, 5),
2901
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test1").WithArguments("Test1<T1, T2>(delegate*<T1, T2>[])").WithLocation(8, 5),
2960
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test").WithArguments("Test<T1, T2>(delegate* unmanaged[Cdecl]<T1, T2>)").WithLocation(5, 5),
2987
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test").WithArguments("Test<T1, T2>(delegate*<T1, T2>)").WithLocation(5, 5),
2993
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test").WithArguments("Test<T1, T2>(delegate*<T1, T2>)").WithLocation(8, 5),
3017
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test").WithArguments("Test<T1, T2>(delegate*<delegate* unmanaged[Cdecl]<T1, T2>, void>)").WithLocation(5, 5),
3044
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test").WithArguments("Test<T1, T2>(delegate*<delegate*<T1, T2>, void>)").WithLocation(5, 5),
3050
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Test").WithArguments("Test<T1, T2>(delegate*<delegate*<T1, T2>, void>)").WithLocation(8, 5),
Semantics\GenericConstraintsTests.cs (4)
3261
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Unmanaged").WithArguments("C.Unmanaged<T>(T*)").WithLocation(14, 9),
3264
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Unmanaged").WithArguments("C.Unmanaged<T>(T*)").WithLocation(15, 9),
3267
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "UnmanagedWithInterface").WithArguments("C.UnmanagedWithInterface<T>(T*)").WithLocation(18, 9),
3270
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "UnmanagedWithInterface").WithArguments("C.UnmanagedWithInterface<T>(T*)").WithLocation(19, 9),
Semantics\ImplicitObjectCreationTests.cs (5)
1349
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(System.Func<bool, T>)").WithLocation(12, 9)
2247
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("C.F<T>(System.Threading.Tasks.Task<T>)").WithLocation(8, 9)
2270
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("C.F<T>(System.Threading.Tasks.Task<T>)").WithLocation(8, 9),
2448
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(T)").WithLocation(6, 9)
2469
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(T, T)").WithLocation(6, 9)
Semantics\InterpolationTests.cs (3)
5197
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(T, T)").WithLocation(2, 3),
5200
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(T, T)").WithLocation(3, 3)
5223
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(T, System.Func<T>)").WithLocation(3, 3)
Semantics\LambdaTests.cs (6)
5992
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(System.Func<bool, T>)").WithLocation(13, 9),
5995
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(System.Func<bool, T>)").WithLocation(14, 9)
6070
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(System.Func<T>, System.Func<T>)").WithLocation(11, 9),
6079
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(System.Func<T>, System.Func<T>)").WithLocation(12, 9),
6091
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(System.Func<T>, System.Func<T>)").WithLocation(11, 9),
6094
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(System.Func<T>, System.Func<T>)").WithLocation(12, 9));
Semantics\MethodTypeInferenceTests.cs (3)
492
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Apply").WithArguments("C.Apply<T>(C.F<T>)").WithLocation(8, 7));
515
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Goo").WithArguments("C.Goo<T>(ref T[])"));
1016
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("Test.M<T>(T)"),
Semantics\MultiDimensionalArrayTests.cs (6)
552
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("C.M1<T>(T[])").WithLocation(10, 9),
555
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("C.M2<T>(T, T)").WithLocation(13, 9),
558
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("C.M2<T>(T, T)").WithLocation(14, 9),
561
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M3").WithArguments("C.M3<T>(System.Collections.Generic.IList<T>)").WithLocation(16, 9),
564
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Test.M1<T>(T[*])").WithLocation(18, 14),
573
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M2").WithArguments("Test.M2<T>(T[], T[*])").WithLocation(23, 14)
Semantics\NativeIntegerTests.cs (10)
14245
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F0").WithArguments("Program.F0<T>(System.Func<T>)").WithLocation(15, 9),
14248
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F0").WithArguments("Program.F0<T>(System.Func<T>)").WithLocation(16, 9));
14285
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F0").WithArguments("Program.F0<T>(System.Func<T>)").WithLocation(10, 9),
14294
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F0").WithArguments("Program.F0<T>(System.Func<T>)").WithLocation(16, 9));
14351
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F0").WithArguments("Program.F0<T>(T, T)").WithLocation(12, 9),
14354
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F0").WithArguments("Program.F0<T>(T, T)").WithLocation(13, 9),
14363
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F0").WithArguments("Program.F0<T>(T, T)").WithLocation(23, 9),
14366
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F0").WithArguments("Program.F0<T>(T, T)").WithLocation(24, 9),
14375
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F0").WithArguments("Program.F0<T>(T, T)").WithLocation(34, 9),
14378
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F0").WithArguments("Program.F0<T>(T, T)").WithLocation(35, 9),
Semantics\NullableReferenceTypesTests.cs (6)
4229
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Copy").WithArguments("Program.Copy<T, U>(T, U)").WithLocation(7, 18),
45005
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Program.F1<T>(T, ref T)").WithLocation(86, 9),
45017
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Program.F1<T>(T, ref T)").WithLocation(95, 9),
90720
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("C.F<T>(T)").WithLocation(9, 9),
106248
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "CopyOutInherit").WithArguments("C.CopyOutInherit<T1, T2>(T1, out T2)").WithLocation(29, 9),
152690
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Select").WithArguments("System.Linq.Enumerable.Select<TSource, TResult>(System.Collections.Generic.IEnumerable<TSource>, System.Func<TSource, TResult>)").WithLocation(14, 11)
Semantics\ObjectAndCollectionInitializerTests.cs (1)
1556
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "1").WithArguments("Gen<int>.Add<U>(int)").WithLocation(21, 45)
Semantics\OutVarTests.cs (6)
32365
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "TakeOutParam").WithArguments("H.TakeOutParam<T>(out T)").WithLocation(2, 3)
32801
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "TakeOutParam").WithArguments("X.TakeOutParam<T>(out T)").WithLocation(6, 9)
32830
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "TakeOutParam").WithArguments("X.TakeOutParam<T>(out T, T)").WithLocation(7, 9),
32833
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "TakeOutParam").WithArguments("X.TakeOutParam<T>(out T, T)").WithLocation(9, 9)
33340
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(out T)").WithLocation(10, 9),
33343
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(out T)").WithLocation(11, 9)
Semantics\OverloadResolutionTests.cs (20)
1251
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "J").WithArguments("C.J<T>(T, T)").WithLocation(8, 9));
1529
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Goo").WithArguments("C.Goo<T>(params T[])").WithLocation(6, 9));
6377
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M3").WithArguments("AggTest.B1.M3<S, T>(G1<G2<S, T>>)"),
6380
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M3").WithArguments("AggTest.B1.M3<S, T>(G1<G2<S, T>>)"),
6383
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M3").WithArguments("AggTest.B1.M3<S, T>(G1<G2<S, T>>)"),
6386
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M3").WithArguments("AggTest.B1.M3<S, T>(G1<G2<S, T>>)"),
6389
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M3").WithArguments("AggTest.B1.M3<S, T>(G1<G2<S, T>>)"),
6392
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M3").WithArguments("AggTest.B1.M3<S, T>(G1<G2<S, T>>)"),
6398
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M3").WithArguments("AggTest.B1.M3<S, T>(G1<G2<S, T>>)"),
6401
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M3").WithArguments("AggTest.B1.M3<S, T>(G1<G2<S, T>>)"));
9304
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Assert").WithArguments("Test.Assert<T>(T, T)").WithLocation(17, 9),
9307
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Assert").WithArguments("Test.Assert<T>(T, T)").WithLocation(18, 9)
10875
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(in T, in T)").WithLocation(15, 9),
10881
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(in T, in T)").WithLocation(17, 9),
10890
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(in T, in T)").WithLocation(22, 9),
10893
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(in T, in T)").WithLocation(23, 9)
10970
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Method").WithArguments("Program.Method<T>(in (T arg1, T arg2))").WithLocation(15, 9),
10979
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Method").WithArguments("Program.Method<T>(in (T arg1, T arg2))").WithLocation(17, 9),
11024
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Method").WithArguments("Program.Method<T>(in T)").WithLocation(11, 9));
11050
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M1").WithArguments("Program.M1<T>(T, T)").WithLocation(13, 9)
Semantics\RawInterpolationTests_Handler.cs (3)
3436
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(T, T)").WithLocation(2, 3),
3439
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(T, T)").WithLocation(3, 3));
3461
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(T, System.Func<T>)").WithLocation(3, 3));
Semantics\RecordTests.cs (1)
23984
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("Program.F<T>(System.IEquatable<T>)").WithLocation(11, 9));
Semantics\SemanticAnalyzerTests.cs (1)
473
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "Generic").WithArguments("P.Generic<T>()").WithLocation(118, 11),
Semantics\SemanticErrorTests.cs (2)
10633
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_CantInferMethTypeArgs
, Line = 11, Column = 11 } });
10653
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "(D<int>)GenericMethod").WithArguments("MemberInitializerTest.GenericMethod<T>()")
Semantics\TargetTypedDefaultTests.cs (3)
696
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F").WithArguments("C.F<T>(System.Threading.Tasks.Task<T>)").WithLocation(8, 9)
950
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(T)").WithLocation(6, 9)
971
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M").WithArguments("C.M<T>(T, T)").WithLocation(6, 9)
Semantics\UsingStatementTests.cs (1)
1074
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "S1 c = new S1()").WithArguments("S1.Dispose<T>()").WithLocation(11, 16),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (28)
Symbols\ConversionTests.cs (12)
1446
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Test.F1<R>(G1<R>)"),
1455
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FS2").WithArguments("Test.FS2<R, S>(GS2<R, S>)"),
1461
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FS3").WithArguments("Test.FS3<R, S, T>(GS3<R, S, T>)"),
1476
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FC2").WithArguments("Test.FC2<R, S>(GC2<R, S>)"),
1482
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FC3").WithArguments("Test.FC3<R, S, T>(GC3<R, S, T>)"),
1491
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Test.F1<R>(G1<R>)"),
1494
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Test.F1<R>(G1<R>)"),
1497
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "F1").WithArguments("Test.F1<R>(G1<R>)"),
1500
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FC2").WithArguments("Test.FC2<R, S>(GC2<R, S>)"),
1503
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FC2").WithArguments("Test.FC2<R, S>(GC2<R, S>)"),
1506
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FC2").WithArguments("Test.FC2<R, S>(GC2<R, S>)"),
1509
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FC3").WithArguments("Test.FC3<R, S, T>(GC3<R, S, T>)")
Symbols\ExtensionMethodTests.cs (2)
689
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M4").WithArguments("N1.N2.C.M4<T>(T, int)").WithLocation(13, 22),
707
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "M4").WithArguments("N1.N2.C.M4<T>(T, int)").WithLocation(44, 22),
Symbols\Source\DelegateTests.cs (14)
604
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FCT").WithArguments("DelegateTest.FCT<T>(C<T>)").WithLocation(45, 21),
607
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "PT").WithArguments("DelegateTest.PT<T>(params T[])").WithLocation(46, 21),
619
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "PST").WithArguments("DelegateTest.PST<S, T>(S, params T[])").WithLocation(51, 23),
625
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FTT").WithArguments("DelegateTest.FTT<T>(T, T)").WithLocation(54, 23),
631
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "PST").WithArguments("DelegateTest.PST<S, T>(S, params T[])").WithLocation(56, 23),
637
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FTT").WithArguments("DelegateTest.FTT<T>(T, T)").WithLocation(59, 23),
646
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "PST").WithArguments("DelegateTest.PST<S, T>(S, params T[])").WithLocation(62, 23),
652
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FCT").WithArguments("DelegateTest.FCT<T>(C<T>)").WithLocation(65, 23),
658
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FTT").WithArguments("DelegateTest.FTT<T>(T, T)").WithLocation(68, 25),
664
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "FTT").WithArguments("DelegateTest.FTT<T>(T, T)").WithLocation(71, 25),
667
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "PTT").WithArguments("DelegateTest.PTT<T>(T, params T[])").WithLocation(72, 25),
673
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "PTT").WithArguments("DelegateTest.PTT<T>(T, params T[])").WithLocation(75, 27),
679
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "PT").WithArguments("DelegateTest.PT<T>(params T[])").WithLocation(78, 23),
682
Diagnostic(ErrorCode.
ERR_CantInferMethTypeArgs
, "RunG").WithArguments("DelegateTest.RunG<T>(T)").WithLocation(80, 9));