Merge pull request #3766 from BrzVlad/feature-default-conc
[mono.git] / mcs / errors / cs1501-7.cs
index 4f3fdf77285576a85e5a6ad2042fe89cbbf2f600..c3691940efb1fa9c334f8b881560d374d36bb038 100644 (file)
@@ -1,8 +1,29 @@
-// cs1501.cs: New invocation: Can not find a constructor in `A' for this argument list
-// Line: 6
+// CS1501: No overload for method `Select' takes `1' arguments
+// Line: 17
 
-public class A {
-    A[] test = {
-        new A("test")
-    };
+
+using System;
+
+class TestA
+{
+       public string value;
+       
+       public TestA (string value)
+       {
+               this.value = value;
+       }
+       
+       public string Select (int i, Func<TestA, TestA> f)
+       {
+               return value;
+       }
+}
+
+public class M
+{
+       static void Main ()
+       {
+               var v = new TestA ("Oh yes");
+               string foo = from a in v select a;
+       }
 }