summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-linq-13.cs
blob: 3e2cf76d5bba94b042883795fe08240ac53f37a7 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

class Program {

	public static void Main ()
	{
	}

	static void Foo (TypeDefinition type)
	{
		var res = from MethodDefinition meth in type.Methods
					select meth;
	}
}

interface IFoo
{
}

static class Extension
{
	public static IEnumerable<T> Cast<T> (this IFoo i)
	{
		return null;
	}
}

public class MethodDefinition
{
}

public class TypeDefinition
{
	public MethodDefinitionCollection Methods { get { return null; } set {} }
}

public class MethodDefinitionCollection : CollectionBase 
{
}