-// Compiler options: -langversion:linq
+
using System;
using System.Collections.Generic;
{
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;
from i in i2 group i by 2 into i9
from i in i2 group i by 2 into i9
select i9;
+
+ // NESTED
+ var e3 = from a in
+ from b in i2
+ select b
+ orderby a
+ select a;
int from = 0;
bool let = false;
//object o = (object)from i in i2 select i;
}
+ void Foo (int from, bool where)
+ {
+ int Foo = 0;
+ if (from < Foo) // This tests generics micro-parser awareness
+ return;
+ }
+
int foo;
void Do (string[] args)
{
Console.WriteLine (args [from]);
}
}
+
+ class D
+ {
+ public bool check (object from, object to)
+ {
+ if (from is int && to is int) return true;
+ return false;
+ }
+ }
}