summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1942-2.cs
blob: f67f376da67fd64049d10f4d5c55c7c3eaebe9a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS1942: An expression type in `select' clause is incorrect. Type inference failed in the call to `Select'
// Line: 18

using System;

class TestA
{
	public string Select<U> (Func<TestA, U> f)
	{
		return "";
	}
}

public class C
{
	static void Main ()
	{
		string foo = from a in new TestA () select null;
	}
}