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)
19863
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M").WithArguments("E.extension(int).M()", "int").WithLocation(5, 20));
40306
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));
140883
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(T).F").WithArguments("E.F<T>(T)", "T").WithLocation(13, 13),
140886
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V).F").WithArguments("E.F<V>(V)", "V").WithLocation(15, 13),
140889
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V?).F").WithArguments("E.F<V?>(V?)", "V?").WithLocation(16, 13));
140918
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(T).F").WithArguments("E.F<T>(T)", "T").WithLocation(12, 19),
140921
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V).F").WithArguments("E.F<V>(V)", "V").WithLocation(14, 19),
140924
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "default(V?).F").WithArguments("E.F<V?>(V?)", "V?").WithLocation(15, 19));
Semantics\SemanticErrorTests.cs (23)
13853
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "e.M3").WithArguments("SC.M3(E)", "E").WithLocation(24, 29),
13855
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M4").WithArguments("SC.M4(S)", "S").WithLocation(26, 29),
13857
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "d.M5").WithArguments("SC.M5(double)", "double").WithLocation(27, 29));
13899
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M1").WithArguments("E.M1<int>(int)", "int").WithLocation(13, 13),
13901
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M2<int, object>").WithArguments("E.M2<int, object>(int)", "int").WithLocation(14, 13),
13903
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M1").WithArguments("E.M1<S>(S)", "S").WithLocation(15, 13),
13905
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M2<S, object>").WithArguments("E.M2<S, object>(S)", "S").WithLocation(16, 13),
13907
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M1").WithArguments("E.M1<T1>(T1)", "T1").WithLocation(17, 13),
13909
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M2<T1, object>").WithArguments("E.M2<T1, object>(T1)", "T1").WithLocation(18, 13),
13911
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M1").WithArguments("E.M1<T3>(T3)", "T3").WithLocation(21, 13),
13913
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M2<T3, object>").WithArguments("E.M2<T3, object>(T3)", "T3").WithLocation(22, 13),
13915
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t4.M1").WithArguments("E.M1<T4>(T4)", "T4").WithLocation(23, 13),
13917
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t4.M2<T4, object>").WithArguments("E.M2<T4, object>(T4)", "T4").WithLocation(24, 13));
13960
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M1").WithArguments("E.M1<int>(int)", "int").WithLocation(12, 11),
13962
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "i.M2<int, object>").WithArguments("E.M2<int, object>(int)", "int").WithLocation(13, 11),
13964
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M1").WithArguments("E.M1<S>(S)", "S").WithLocation(14, 11),
13966
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "s.M2<S, object>").WithArguments("E.M2<S, object>(S)", "S").WithLocation(15, 11),
13968
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M1").WithArguments("E.M1<T1>(T1)", "T1").WithLocation(16, 11),
13970
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t1.M2<T1, object>").WithArguments("E.M2<T1, object>(T1)", "T1").WithLocation(17, 11),
13972
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M1").WithArguments("E.M1<T3>(T3)", "T3").WithLocation(20, 11),
13974
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t3.M2<T3, object>").WithArguments("E.M2<T3, object>(T3)", "T3").WithLocation(21, 11),
13976
Diagnostic(ErrorCode.
ERR_ValueTypeExtDelegate
, "t4.M1").WithArguments("E.M1<T4>(T4)", "T4").WithLocation(22, 11),
13978
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"));