Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git] / mcs / errors / cs1113-2.cs
blob5043b34db45315d18b5023bc6553f896ba75370d
1 // CS1113: Extension method `Extension.Foo(this S)' of value type `S' cannot be used to create delegates
2 // Line: 11
4 delegate void D ();
6 public class C
8 static void Main ()
10 S s = new S ();
11 D d = s.Foo;
15 public struct S
17 public void Foo (int i)
22 public static class Extension
24 public static void Foo (this S s) { }