summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-linq-28.cs
blob: edcc93f52ec8cee5cf19696ad9c60967130f8eec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Linq;

class C
{
	public static int Main ()
	{
		var r = from m in "ab"
				let n = from n in "xyz" select n
				select n;
		
		int counter = 0;
		foreach (var a in r) {
			foreach (var b in a) {
				Console.WriteLine (b);
				counter++;
			}
		}
		
		if (counter != 6)
			return 1;
		
		return 0;
	}
}