Author: marek
Date: 2006-09-23 19:15:46 -0400 (Sat, 23 Sep 2006)
New Revision: 65841
Added:
trunk/mcs/tests/gtest-290.cs
Modified:
trunk/mcs/errors/cs0067.cs
Log:
New tests, update.
Modified: trunk/mcs/errors/cs0067.cs
===================================================================
--- trunk/mcs/errors/cs0067.cs 2006-09-23 23:15:13 UTC (rev 65840)
+++ trunk/mcs/errors/cs0067.cs 2006-09-23 23:15:46 UTC (rev 65841)
@@ -1,4 +1,4 @@
-// cs0067.cs: The event `Foo.OnFoo' is never used
+// cs0067: The event `Foo.OnFoo' is never used
// Line: 12
// Compiler options: -warnaserror -warn:4
@@ -9,7 +9,7 @@
}
class Foo {
- public event ErrorCS0067.FooHandler OnFoo;
+ private event ErrorCS0067.FooHandler OnFoo;
public static void Main () {
}
Added: trunk/mcs/tests/gtest-290.cs
===================================================================
--- trunk/mcs/tests/gtest-290.cs 2006-09-23 23:15:13 UTC (rev 65840)
+++ trunk/mcs/tests/gtest-290.cs 2006-09-23 23:15:46 UTC (rev 65841)
@@ -0,0 +1,23 @@
+// Compiler options: -warnaserror -warn:4
+
+using System;
+
+public delegate void GenericEventHandler<U, V>(U u, V v);
+
+public class GenericEventNotUsedTest<T>
+{
+ event GenericEventHandler<GenericEventNotUsedTest<T>, T> TestEvent;
+
+ public void RaiseTestEvent(T t)
+ {
+ TestEvent(this, t);
+ }
+}
+
+public static class TestEntry
+{
+ public static void Main()
+ {
+ }
+}
+
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches