2010-05-25 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0407-3.cs
blob963a20b416eb7bf08d800fb0bd6bc1642a821184
1 // CS0407: A method or delegate `int TestDelegateA(bool)' return type does not match delegate `bool TestDelegateB(bool)' return type
2 // Line: 12
4 delegate int TestDelegateA (bool b);
5 delegate bool TestDelegateB (bool b);
7 public class MainClass
9 public static int Delegate(bool b)
11 return 0;
14 public static void Main()
16 TestDelegateA a = new TestDelegateA (Delegate);
17 TestDelegateB b = new TestDelegateB (a);