Author: marek
Date: 2006-09-24 12:09:59 -0400 (Sun, 24 Sep 2006)
New Revision: 65863
Added:
trunk/mcs/errors/gcs3024-2.cs
trunk/mcs/errors/gcs3024.cs
Log:
New tests.
Added: trunk/mcs/errors/gcs3024-2.cs
===================================================================
--- trunk/mcs/errors/gcs3024-2.cs 2006-09-24 16:09:21 UTC (rev 65862)
+++ trunk/mcs/errors/gcs3024-2.cs 2006-09-24 16:09:59 UTC (rev 65863)
@@ -0,0 +1,19 @@
+// CS3024: Constraint type `A' is not CLS-compliant
+// Line: 15
+// Compiler options: -warn:1 -warnaserror
+
+using System;
+[assembly:CLSCompliant (true)]
+
+[CLSCompliant (false)]
+public abstract class A
+{
+}
+
+public class C
+{
+ public static void Foo<T>() where T : A
+ {
+ }
+}
+
Added: trunk/mcs/errors/gcs3024.cs
===================================================================
--- trunk/mcs/errors/gcs3024.cs 2006-09-24 16:09:21 UTC (rev 65862)
+++ trunk/mcs/errors/gcs3024.cs 2006-09-24 16:09:59 UTC (rev 65863)
@@ -0,0 +1,16 @@
+// CS3024: Constraint type `I' is not CLS-compliant
+// Line: 13
+// Compiler options: -warn:1 -warnaserror
+
+using System;
+[assembly:CLSCompliant (true)]
+
+[CLSCompliant (false)]
+public interface I
+{
+}
+
+public class C<T> where T : I
+{
+}
+
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches