summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0037-10.cs
blob: 56639c2104fe42fad10e6739ef0051cf8386f76d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS0037: Cannot convert null to `bool' because it is a value type
// Line: 19


using System;

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

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