summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1113.cs
blob: eda00f3ae533fccd48ea99a3ff6c1e9a78770669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// CS1113: Extension method `Extension.Foo(this S)' of value type `S' cannot be used to create delegates
// Line: 12


delegate void D ();

public class C
{
	static void Main ()
	{
		S s = new S ();
		D d = s.Foo;
	}
}

public struct S
{
}

public static class Extension
{
	public static void Foo (this S s) { }
}