[msbuild] Bump msbuild, fix build breakage
[mono.git] / mcs / tests / gtest-linq-01.cs
index 4977461c1aaa6e48b7d37220fedebff89e9e327d..e6e8ec671f978ef28a953c0b8b83e12e87702f4d 100644 (file)
@@ -1,5 +1,3 @@
-// Compiler options: -langversion:linq
-
 using System;
 using System.Collections.Generic;
 using System.Linq;
@@ -13,12 +11,12 @@ namespace from
 
        class C
        {
-               // This is pure grammar test
+               // This is pure grammar/parser test
                public static void Main ()
                {
                        int[] i2 = new int [] { 0, 1 };
                        int[] i_b = new int [] { 0, 1 };
-                       ITest[] join_test = null;
+                       ITest[] join_test = new ITest[0];
                        
                        IEnumerable<int> e;
                        IEnumerable<IGrouping<int,int>> g;
@@ -68,6 +66,13 @@ namespace from
                                        select b
                                orderby a
                                select a;
+                               
+                       var e4 = from i in
+                                       from x in i2
+                                       select x
+                               let l = from x2 in i2 select x2
+                               let l2 = 50
+                               select 1;
 
                        int from = 0;
                        bool let = false;
@@ -100,3 +105,24 @@ namespace from
                }
        }
 }
+
+namespace FromProblems2
+{
+       class from
+       {
+       }
+       
+       class C
+       {
+               void M1 ()
+               {
+                       from local = new from ();
+               }
+               
+               from M2 ()
+               {
+                       return null;
+               }
+       }
+}
+