47 references to ERR_ExtensionResolutionFailed
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
8830
var errorInfo = new CSDiagnosticInfo(ErrorCode.
ERR_ExtensionResolutionFailed
, receiverType, memberName);
Errors\ErrorFacts.cs (1)
2497
or ErrorCode.
ERR_ExtensionResolutionFailed
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (45)
Semantics\ExtensionTests.cs (43)
11527
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.P").WithArguments("object", "P").WithLocation(1, 5));
14572
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.P").WithArguments("System.Collections.Generic.IEnumerable<object>", "P").WithLocation(5, 5)
14661
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "int.P").WithArguments("int", "P").WithLocation(4, 5),
14664
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "42.P2").WithArguments("int", "P2").WithLocation(5, 5));
15256
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().P").WithArguments("object", "P").WithLocation(1, 22));
15434
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().P").WithArguments("object", "P").WithLocation(1, 22));
15591
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 16),
15594
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 22));
15627
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 23),
15630
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 29));
15689
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 17));
15721
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 24),
15724
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 19));
17009
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "o.Member").WithArguments("object", "Member").WithLocation(2, 5));
17080
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 10),
17083
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 16));
17113
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.f").WithArguments("object", "f").WithLocation(1, 38)
17143
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().Member").WithArguments("object", "Member").WithLocation(1, 43));
17203
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 29)
17235
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 38)
17786
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.StaticProperty").WithArguments("object", "StaticProperty").WithLocation(2, 13),
17789
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.StaticProperty").WithArguments("object", "StaticProperty").WithLocation(2, 37));
20481
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "1.Property").WithArguments("int", "Property").WithLocation(1, 1),
20484
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "2.Property").WithArguments("int", "Property").WithLocation(2, 5));
20823
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "(1, 1).Property").WithArguments("(int, int)", "Property").WithLocation(1, 1),
20826
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "(2, 2).Property").WithArguments("(int, int)", "Property").WithLocation(2, 5));
20868
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 22));
20905
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 22));
21042
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "C.M").WithArguments("C", "M").WithLocation(1, 22));
23545
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "Property").WithArguments("string[]", "Property").WithLocation(2, 12),
24656
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.P").WithArguments("object", "P").WithLocation(1, 9));
24938
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 22));
25196
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "C.Property").WithArguments("C", "Property").WithLocation(1, 29));
30808
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new A.C().P").WithArguments("A.C", "P").WithLocation(1, 5));
31198
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "Color.P").WithArguments("Color", "P").WithLocation(5, 13));
31844
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "s.M").WithArguments("string", "M").WithLocation(2, 1));
31875
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "string.M").WithArguments("string", "M").WithLocation(1, 1));
31909
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.M").WithArguments("I<string>", "M").WithLocation(2, 1));
31947
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.M").WithArguments("I<string>", "M").WithLocation(2, 1));
32387
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().M").WithArguments("object", "M").WithLocation(1, 9));
32544
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.P").WithArguments("int", "P").WithLocation(2, 5));
32939
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.Property").WithArguments("object", "Property").WithLocation(2, 5));
41685
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.P").WithArguments("object", "P").WithLocation(13, 73));
Semantics\ExtensionTests2.cs (2)
2415
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 9),
2418
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(4, 19));