41 references to ERR_ValueTypeExtDelegate
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Conversions\Conversions.cs (1)
237
ErrorCode.
ERR_ValueTypeExtDelegate
,
Errors\ErrorFacts.cs (1)
1140
case ErrorCode.
ERR_ValueTypeExtDelegate
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
FlowAnalysis\RegionAnalysisTests.cs (2)
9474
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "this.M").WithArguments("Extension.M(C)", "C").WithLocation(8, 24),
9477
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "c.M").WithArguments("Extension.M(C)", "C").WithLocation(14, 24)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (33)
Semantics\NullableReferenceTypesTests.cs (9)
2618
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "e.M3").WithArguments("SC.M3(E)", "E").WithLocation(24, 29),
2620
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M4").WithArguments("SC.M4(S)", "S").WithLocation(26, 29),
2622
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "d.M5").WithArguments("SC.M5(double)", "double").WithLocation(27, 29));
136564
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(T).F").WithArguments("E.F<T>(T)", "T").WithLocation(13, 13),
136567
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V).F").WithArguments("E.F<V>(V)", "V").WithLocation(15, 13),
136570
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V?).F").WithArguments("E.F<V?>(V?)", "V?").WithLocation(16, 13));
136599
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(T).F").WithArguments("E.F<T>(T)", "T").WithLocation(12, 19),
136602
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V).F").WithArguments("E.F<V>(V)", "V").WithLocation(14, 19),
136605
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V?).F").WithArguments("E.F<V?>(V?)", "V?").WithLocation(15, 19));
Semantics\SemanticErrorTests.cs (23)
13695
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "e.M3").WithArguments("SC.M3(E)", "E").WithLocation(24, 29),
13697
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M4").WithArguments("SC.M4(S)", "S").WithLocation(26, 29),
13699
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "d.M5").WithArguments("SC.M5(double)", "double").WithLocation(27, 29));
13741
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M1").WithArguments("E.M1<int>(int)", "int").WithLocation(13, 13),
13743
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M2<int, object>").WithArguments("E.M2<int, object>(int)", "int").WithLocation(14, 13),
13745
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M1").WithArguments("E.M1<S>(S)", "S").WithLocation(15, 13),
13747
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M2<S, object>").WithArguments("E.M2<S, object>(S)", "S").WithLocation(16, 13),
13749
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M1").WithArguments("E.M1<T1>(T1)", "T1").WithLocation(17, 13),
13751
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M2<T1, object>").WithArguments("E.M2<T1, object>(T1)", "T1").WithLocation(18, 13),
13753
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M1").WithArguments("E.M1<T3>(T3)", "T3").WithLocation(21, 13),
13755
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M2<T3, object>").WithArguments("E.M2<T3, object>(T3)", "T3").WithLocation(22, 13),
13757
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t4.M1").WithArguments("E.M1<T4>(T4)", "T4").WithLocation(23, 13),
13759
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t4.M2<T4, object>").WithArguments("E.M2<T4, object>(T4)", "T4").WithLocation(24, 13));
13802
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M1").WithArguments("E.M1<int>(int)", "int").WithLocation(12, 11),
13804
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M2<int, object>").WithArguments("E.M2<int, object>(int)", "int").WithLocation(13, 11),
13806
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M1").WithArguments("E.M1<S>(S)", "S").WithLocation(14, 11),
13808
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M2<S, object>").WithArguments("E.M2<S, object>(S)", "S").WithLocation(15, 11),
13810
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M1").WithArguments("E.M1<T1>(T1)", "T1").WithLocation(16, 11),
13812
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M2<T1, object>").WithArguments("E.M2<T1, object>(T1)", "T1").WithLocation(17, 11),
13814
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M1").WithArguments("E.M1<T3>(T3)", "T3").WithLocation(20, 11),
13816
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M2<T3, object>").WithArguments("E.M2<T3, object>(T3)", "T3").WithLocation(21, 11),
13818
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t4.M1").WithArguments("E.M1<T4>(T4)", "T4").WithLocation(22, 11),
13820
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t4.M2<T4, object>").WithArguments("E.M2<T4, object>(T4)", "T4").WithLocation(23, 11));
Semantics\UnsafeTests.cs (1)
4927
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "p->ExtensionMethod").WithArguments("Extensions.ExtensionMethod(S)", "S").WithLocation(39, 13)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\ExtensionMethodTests.cs (4)
3052
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "x.Goo").WithArguments("C.Goo(int)", "int").WithLocation(9, 13),
3054
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "new VoidDelegate(x.Goo)").WithArguments("C.Goo(int)", "int").WithLocation(10, 13),
3056
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "x.Goo").WithArguments("'C.Goo(int)", "int").WithLocation(11, 14));
3080
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "x.Goo").WithArguments("DevDivBugs142219.Goo<T>(T)", "T"));