[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0407-3.cs
1 // CS0407: A method or delegate `int TestDelegateA(bool)' return type does not match delegate `bool TestDelegateB(bool)' return type
2 // Line: 12
3
4 delegate int TestDelegateA (bool b);
5 delegate bool TestDelegateB (bool b);
6
7 public class MainClass
8 {
9         public static int Delegate(bool b)
10         {
11                 return 0;
12         }
13
14         public static void Main() 
15         {
16                 TestDelegateA a = new TestDelegateA (Delegate);
17                 TestDelegateB b = new TestDelegateB (a);
18         }
19 }
20