Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

17 lines
307 B
C#

// CS1061: Type `int' does not contain a definition for `Foo' and no extension method `Foo' of type `int' could be found. Are you missing an assembly reference?
// Line: 11
using System;
static class C
{
static void Main ()
{
int i = 1;
Action a = i.Foo;
}
static void Foo (this string s)
{
}
}