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; } }