Fix all CreateInstance overloads for void
[mcs.git] / errors / gcs1942-2.cs
blobf67f376da67fd64049d10f4d5c55c7c3eaebe9a1
1 // CS1942: An expression type in `select' clause is incorrect. Type inference failed in the call to `Select'
2 // Line: 18
4 using System;
6 class TestA
8 public string Select<U> (Func<TestA, U> f)
10 return "";
14 public class C
16 static void Main ()
18 string foo = from a in new TestA () select null;