Wed Oct 17 13:24:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
[mono.git] / mcs / errors / gcs0029-6.cs
1 // CS0029: Cannot implicitly convert type `string' to `int'
2 // Line: 28
3 // Compiler options: -langversion:linq
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 }