Merge pull request #4845 from lambdageek/dev-coop-delegates
[mono.git] / mcs / errors / cs0407-6.cs
1 // CS0407: A method or delegate `int Program.Foo(object)' return type does not match delegate `void System.Action<dynamic>(dynamic)' return type
2 // Line: 10
3
4 using System;
5
6 class Program
7 {
8         static void Main()
9         {
10                 Action<dynamic> d = Foo;
11         }
12
13         static int Foo (object o)
14         {
15                 return 0;
16         }
17 }