Author: marek
Date: 2005-04-08 06:35:51 -0400 (Fri, 08 Apr 2005)
New Revision: 42683

Added:
   trunk/mcs/errors/cs0442.cs
   trunk/mcs/errors/cs0655-2.cs
   trunk/mcs/errors/cs0655.cs
   trunk/mcs/errors/cs1636.cs
   trunk/mcs/errors/cs1637.cs
   trunk/mcs/errors/cs1674.cs
Removed:
   trunk/mcs/errors/cs0422.cs
Modified:
   trunk/mcs/errors/gmcs-expect-wrong-error
Log:
new error tests

Deleted: trunk/mcs/errors/cs0422.cs
===================================================================
--- trunk/mcs/errors/cs0422.cs  2005-04-08 10:32:50 UTC (rev 42682)
+++ trunk/mcs/errors/cs0422.cs  2005-04-08 10:35:51 UTC (rev 42683)
@@ -1,11 +0,0 @@
-// cs0422.cs: 'C.Prop.get': abstract properties cannot have private accessors
-// Line: 7
-
-abstract class C {
-    protected abstract int Prop
-    {
-       private get;
-       set;
-    }
-}
-

Copied: trunk/mcs/errors/cs0442.cs (from rev 42624, trunk/mcs/errors/cs0422.cs)
===================================================================
--- trunk/mcs/errors/cs0422.cs  2005-04-07 06:58:31 UTC (rev 42624)
+++ trunk/mcs/errors/cs0442.cs  2005-04-08 10:35:51 UTC (rev 42683)
@@ -0,0 +1,11 @@
+// cs0442.cs: 'C.Prop.get': abstract properties cannot have private accessors
+// Line: 7
+
+abstract class C {
+    protected abstract int Prop
+    {
+       private get;
+       set;
+    }
+}
+

Added: trunk/mcs/errors/cs0655-2.cs
===================================================================
--- trunk/mcs/errors/cs0655-2.cs        2005-04-08 10:32:50 UTC (rev 42682)
+++ trunk/mcs/errors/cs0655-2.cs        2005-04-08 10:35:51 UTC (rev 42683)
@@ -0,0 +1,14 @@
+// cs0655.cs: 'd' is not a valid named attribute argument because its type is 
not valid attribute type
+// Line: 11
+
+using System;
+
+class TestAttribute : Attribute
+{
+   public int[][] a;
+}
+
+[Test (a = null)]
+class C
+{
+}
\ No newline at end of file

Added: trunk/mcs/errors/cs0655.cs
===================================================================
--- trunk/mcs/errors/cs0655.cs  2005-04-08 10:32:50 UTC (rev 42682)
+++ trunk/mcs/errors/cs0655.cs  2005-04-08 10:35:51 UTC (rev 42683)
@@ -0,0 +1,14 @@
+// cs0655.cs: 'd' is not a valid named attribute argument because its type is 
not valid attribute type
+// Line: 11
+
+using System;
+
+class TestAttribute : Attribute
+{
+   public decimal d;
+}
+
+[Test (d = 44444)]
+class C
+{
+}
\ No newline at end of file

Added: trunk/mcs/errors/cs1636.cs
===================================================================
--- trunk/mcs/errors/cs1636.cs  2005-04-08 10:32:50 UTC (rev 42682)
+++ trunk/mcs/errors/cs1636.cs  2005-04-08 10:35:51 UTC (rev 42683)
@@ -0,0 +1,11 @@
+// CS1636: __arglist is not allowed in parameter list of iterators
+// Line: 6
+
+class C
+{
+    public System.Collections.IEnumerator GetEnumerator (__arglist)
+    {
+        yield return 1;
+    }
+    
+}

Added: trunk/mcs/errors/cs1637.cs
===================================================================
--- trunk/mcs/errors/cs1637.cs  2005-04-08 10:32:50 UTC (rev 42682)
+++ trunk/mcs/errors/cs1637.cs  2005-04-08 10:35:51 UTC (rev 42683)
@@ -0,0 +1,12 @@
+// CS1637: Iterators cannot have unsafe parameters or yield types
+// Line: 6
+// Compiler options: /unsafe
+
+unsafe class C
+{
+    public System.Collections.IEnumerator GetEnumerator (int* p)
+    {
+        yield return 1;
+    }
+    
+}

Added: trunk/mcs/errors/cs1674.cs
===================================================================
--- trunk/mcs/errors/cs1674.cs  2005-04-08 10:32:50 UTC (rev 42682)
+++ trunk/mcs/errors/cs1674.cs  2005-04-08 10:35:51 UTC (rev 42683)
@@ -0,0 +1,12 @@
+// cs1674.cs: 'int': type used in a using statement must be implicitly 
convertible to 'System.IDisposable'
+// Line: 8
+
+class C
+{
+    void Method (int arg)
+    {
+       using (arg)
+       {
+       }
+    }
+}
\ No newline at end of file

Modified: trunk/mcs/errors/gmcs-expect-wrong-error
===================================================================
--- trunk/mcs/errors/gmcs-expect-wrong-error    2005-04-08 10:32:50 UTC (rev 
42682)
+++ trunk/mcs/errors/gmcs-expect-wrong-error    2005-04-08 10:35:51 UTC (rev 
42683)
@@ -39,7 +39,7 @@
 cs0271.cs
 cs0272.cs
 cs0407.cs
-cs0422.cs
+cs0442.cs
 cs0428.cs
 cs0525-2.cs
 cs0525.cs
@@ -71,6 +71,8 @@
 cs0647-15.cs
 cs0650.cs
 cs0654.cs
+cs0655.cs
+cs0655-2.cs
 cs0681.cs
 cs0683.cs
 cs0686.cs
@@ -112,6 +114,8 @@
 cs1629.cs
 cs1633.cs
 cs1634.cs
+cs1636.cs
+cs1637.cs
 cs1638.cs
 cs1641.cs
 cs1642.cs
@@ -126,6 +130,7 @@
 cs1670.cs
 cs1671-2.cs
 cs1671.cs
+cs1674.cs
 cs1677-2.cs
 cs1677.cs
 cs1708.cs

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to