Author: martin
Date: 2005-07-06 10:44:46 -0400 (Wed, 06 Jul 2005)
New Revision: 47007
Added:
trunk/mcs/errors/gcs0411-7.cs
Log:
New test.
Added: trunk/mcs/errors/gcs0411-7.cs
===================================================================
--- trunk/mcs/errors/gcs0411-7.cs 2005-07-06 14:44:31 UTC (rev 47006)
+++ trunk/mcs/errors/gcs0411-7.cs 2005-07-06 14:44:46 UTC (rev 47007)
@@ -0,0 +1,17 @@
+// CS0411: The type arguments for method `Test' cannot be infered from the
usage. Try specifying the type arguments explicitly.
+// Line: 15
+using System;
+
+public delegate void Foo<T> (T t);
+
+class X
+{
+ public void Test<T> (Foo<T> foo)
+ { }
+
+ static void Main ()
+ {
+ X x = new X ();
+ x.Test (delegate (string str) { });
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches