[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / errors / cs0037-10.cs
1 // CS0037: Cannot convert null to `bool' because it is a value type
2 // Line: 19
3
4
5 using System;
6
7 class TestA
8 {
9         public string Select (Func<TestA, bool> f)
10         {
11                 return "";
12         }
13 }
14
15 public class C
16 {
17         static void Main ()
18         {
19                 string foo = from a in new TestA () select null;
20         }
21 }