43 references to ERR_ValueTypeExtDelegate
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Conversions\Conversions.cs (1)
354
ErrorCode.
ERR_ValueTypeExtDelegate
,
Errors\ErrorFacts.cs (1)
1202
or ErrorCode.
ERR_ValueTypeExtDelegate
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
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)
Semantics\ExtensionTests.cs (2)
18696
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M").WithArguments("E.extension(int).M()", "int").WithLocation(5, 20));
34840
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "42.M").WithArguments("E.extension<int>(int).M()", "int").WithLocation(1, 9));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (33)
Semantics\NullableReferenceTypesTests.cs (9)
2629
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "e.M3").WithArguments("SC.M3(E)", "E").WithLocation(24, 29),
2631
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M4").WithArguments("SC.M4(S)", "S").WithLocation(26, 29),
2633
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "d.M5").WithArguments("SC.M5(double)", "double").WithLocation(27, 29));
140864
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(T).F").WithArguments("E.F<T>(T)", "T").WithLocation(13, 13),
140867
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V).F").WithArguments("E.F<V>(V)", "V").WithLocation(15, 13),
140870
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V?).F").WithArguments("E.F<V?>(V?)", "V?").WithLocation(16, 13));
140899
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(T).F").WithArguments("E.F<T>(T)", "T").WithLocation(12, 19),
140902
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V).F").WithArguments("E.F<V>(V)", "V").WithLocation(14, 19),
140905
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V?).F").WithArguments("E.F<V?>(V?)", "V?").WithLocation(15, 19));
Semantics\SemanticErrorTests.cs (23)
13808
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "e.M3").WithArguments("SC.M3(E)", "E").WithLocation(24, 29),
13810
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M4").WithArguments("SC.M4(S)", "S").WithLocation(26, 29),
13812
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "d.M5").WithArguments("SC.M5(double)", "double").WithLocation(27, 29));
13854
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M1").WithArguments("E.M1<int>(int)", "int").WithLocation(13, 13),
13856
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M2<int, object>").WithArguments("E.M2<int, object>(int)", "int").WithLocation(14, 13),
13858
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M1").WithArguments("E.M1<S>(S)", "S").WithLocation(15, 13),
13860
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M2<S, object>").WithArguments("E.M2<S, object>(S)", "S").WithLocation(16, 13),
13862
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M1").WithArguments("E.M1<T1>(T1)", "T1").WithLocation(17, 13),
13864
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M2<T1, object>").WithArguments("E.M2<T1, object>(T1)", "T1").WithLocation(18, 13),
13866
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M1").WithArguments("E.M1<T3>(T3)", "T3").WithLocation(21, 13),
13868
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M2<T3, object>").WithArguments("E.M2<T3, object>(T3)", "T3").WithLocation(22, 13),
13870
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t4.M1").WithArguments("E.M1<T4>(T4)", "T4").WithLocation(23, 13),
13872
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t4.M2<T4, object>").WithArguments("E.M2<T4, object>(T4)", "T4").WithLocation(24, 13));
13915
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M1").WithArguments("E.M1<int>(int)", "int").WithLocation(12, 11),
13917
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M2<int, object>").WithArguments("E.M2<int, object>(int)", "int").WithLocation(13, 11),
13919
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M1").WithArguments("E.M1<S>(S)", "S").WithLocation(14, 11),
13921
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M2<S, object>").WithArguments("E.M2<S, object>(S)", "S").WithLocation(15, 11),
13923
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M1").WithArguments("E.M1<T1>(T1)", "T1").WithLocation(16, 11),
13925
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M2<T1, object>").WithArguments("E.M2<T1, object>(T1)", "T1").WithLocation(17, 11),
13927
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M1").WithArguments("E.M1<T3>(T3)", "T3").WithLocation(20, 11),
13929
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M2<T3, object>").WithArguments("E.M2<T3, object>(T3)", "T3").WithLocation(21, 11),
13931
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t4.M1").WithArguments("E.M1<T4>(T4)", "T4").WithLocation(22, 11),
13933
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t4.M2<T4, object>").WithArguments("E.M2<T4, object>(T4)", "T4").WithLocation(23, 11));
Semantics\UnsafeTests.cs (1)
7765
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "p->ExtensionMethod").WithArguments("Extensions.ExtensionMethod(S)", "S").WithLocation(39, 13)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\ExtensionMethodTests.cs (4)
3046
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "x.Goo").WithArguments("C.Goo(int)", "int").WithLocation(9, 13),
3048
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "new VoidDelegate(x.Goo)").WithArguments("C.Goo(int)", "int").WithLocation(10, 13),
3050
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "x.Goo").WithArguments("'C.Goo(int)", "int").WithLocation(11, 14));
3074
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "x.Goo").WithArguments("DevDivBugs142219.Goo<T>(T)", "T"));