Merge pull request #3591 from directhex/mono_libdir_fallback
[mono.git] / mcs / errors / cs0123-8.cs
1 // CS0123: A method or delegate `Test.Foo(int, bool)' parameters do not match delegate `System.Func<int,bool>(int)' parameters
2 // Line: 15
3
4 using System;
5
6 class Test
7 {
8         static bool Foo (int x, bool option = true)
9         {
10                 return true;
11         }
12
13         static void Main ()
14         {
15                 Func<int, bool> f = Foo;
16         }
17 }