[corlib] Make Marshal.BufferToBSTR(Array, int) non-public again (#5670)
[mono.git] / mcs / errors / cs0123-3.cs
1 // CS0123: A method or delegate `X.f1(int, object)' parameters do not match delegate `X.Function(int, int)' parameters
2 // Line: 13
3
4 using System;
5
6 class X
7 {
8         public delegate bool Function(int arg1, int arg2);
9
10         static void Main ()
11         {
12                 Delegate [] d = new Delegate [] {
13                         new Function (f1),
14                 };
15         }
16
17         static bool f1 (int a, object b)
18         {
19                 return false;
20         }
21 }