summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0123-8.cs
blob: 42e3334514284123e876326f8fa95e32b288386e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0123: A method or delegate `Test.Foo(int, bool)' parameters do not match delegate `System.Func<int,bool>(int)' parameters
// Line: 15

using System;

class Test
{
	static bool Foo (int x, bool option = true)
	{
		return true;
	}

	static void Main ()
	{
		Func<int, bool> f = Foo;
	}
}