[mcs] Add expression bodied syntax for accessors. Fixes #54991
[mono.git] / mcs / errors / cs1502-6.cs
1 // CS1502: The best overloaded method match for `Test.Test(TestMethod2)' has some invalid arguments
2 // Line: 8
3
4 public class Test
5 {
6         void Foo ()
7         {
8                 new Test (new TestMethod (Foo));
9         }
10
11         public Test (TestMethod2 test) {}
12 }
13
14 public delegate void TestMethod ();
15 public delegate void TestMethod2 (object o);