[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0029-16.cs
1 // CS0029: Cannot implicitly convert type `string' to `int'
2 // Line: 28
3
4
5 delegate string funcs (string s);
6 delegate int funci (int i);
7
8 class X
9 {
10         static void Foo (funci fi)
11         {
12         }
13         
14         static void Foo (funcs fs)
15         {
16         }
17
18         static void Main ()
19         {
20                 Foo (x => {
21                         int a = "a";
22                         return 2;
23                 });
24         }
25 }