[corlib] Make Marshal.BufferToBSTR(Array, int) non-public again (#5670)
[mono.git] / mcs / errors / cs0407-7.cs
1 // CS0407: A method or delegate `dynamic Program.Foo()' return type does not match delegate `string System.Func<string>()' return type
2 // Line: 10
3
4 using System;
5
6 class Program
7 {
8         static void Main()
9         {
10                 Func<string> d = Foo;
11         }
12
13         static dynamic Foo ()
14         {
15                 return 1;
16         }
17 }