Author: marek
Date: 2007-10-08 10:04:14 -0400 (Mon, 08 Oct 2007)
New Revision: 87095

Added:
   trunk/mcs/errors/cs0029-7.cs
   trunk/mcs/errors/cs0122-23.cs
   trunk/mcs/errors/cs0122-24.cs
   trunk/mcs/errors/cs0214-10.cs
   trunk/mcs/errors/cs0214-11.cs
   trunk/mcs/errors/cs0271-2.cs
   trunk/mcs/errors/cs1501.cs
Removed:
   trunk/mcs/errors/cs0021-3.cs
Modified:
   trunk/mcs/errors/cs0154-3.cs
   trunk/mcs/errors/cs0200-2.cs
   trunk/mcs/errors/known-issues-gmcs
   trunk/mcs/errors/known-issues-mcs
Log:
New tests + updates



Deleted: trunk/mcs/errors/cs0021-3.cs
===================================================================
--- trunk/mcs/errors/cs0021-3.cs        2007-10-08 14:02:45 UTC (rev 87094)
+++ trunk/mcs/errors/cs0021-3.cs        2007-10-08 14:04:14 UTC (rev 87095)
@@ -1,16 +0,0 @@
-// cs0021-2.cs: Cannot apply indexing with [] to an expression of type `Foo'
-// Line: 14
-
-using System;
-       
-public class Foo {
-       private int this[int index] { get { return index; } }
-}
-       
-public class Bar {
-       public static void Main ()
-       {
-               Foo foo = new Foo ();
-               Console.WriteLine (foo[5]);
-       }
-}

Added: trunk/mcs/errors/cs0029-7.cs
===================================================================
--- trunk/mcs/errors/cs0029-7.cs        2007-10-08 14:02:45 UTC (rev 87094)
+++ trunk/mcs/errors/cs0029-7.cs        2007-10-08 14:04:14 UTC (rev 87095)
@@ -0,0 +1,18 @@
+// CS0029: Cannot implicitly convert type `void' to `object'
+// Line: 12
+
+using System;
+using System.Collections;
+
+public class Test
+{
+       static void Main ()
+       {
+               Hashtable ht = new Hashtable ();
+               ht ["a"] = Run ("Appointments");
+       }
+
+       public static void Run (string unit)
+       {
+       }
+}


Property changes on: trunk/mcs/errors/cs0029-7.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/mcs/errors/cs0122-23.cs
===================================================================
--- trunk/mcs/errors/cs0122-23.cs       2007-10-08 14:02:45 UTC (rev 87094)
+++ trunk/mcs/errors/cs0122-23.cs       2007-10-08 14:04:14 UTC (rev 87095)
@@ -0,0 +1,19 @@
+// CS0122: `C.this[int]' is inaccessible due to its protection level
+// Line: 6
+
+using System;
+using System.Collections;
+
+class C
+{
+       protected string this [int i] { set {} }
+}
+
+public class D
+{
+       void Foo ()
+       {
+               C c = new C ();
+               c [0] = null;
+       }
+}


Property changes on: trunk/mcs/errors/cs0122-23.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Copied: trunk/mcs/errors/cs0122-24.cs (from rev 87083, 
trunk/mcs/errors/cs0021-3.cs)
===================================================================
--- trunk/mcs/errors/cs0021-3.cs        2007-10-08 09:27:17 UTC (rev 87083)
+++ trunk/mcs/errors/cs0122-24.cs       2007-10-08 14:04:14 UTC (rev 87095)
@@ -0,0 +1,16 @@
+// CS0122: `Foo.this[int]' is inaccessible due to its protection level
+// Line: 14
+
+using System;
+       
+public class Foo {
+       private int this[int index] { get { return index; } }
+}
+       
+public class Bar {
+       public static void Main ()
+       {
+               Foo foo = new Foo ();
+               Console.WriteLine (foo[5]);
+       }
+}

Modified: trunk/mcs/errors/cs0154-3.cs
===================================================================
--- trunk/mcs/errors/cs0154-3.cs        2007-10-08 14:02:45 UTC (rev 87094)
+++ trunk/mcs/errors/cs0154-3.cs        2007-10-08 14:04:14 UTC (rev 87095)
@@ -1,4 +1,4 @@
-// cs0154-3.cs: The property or indexer `Test.this[bool]' cannot be used in 
this context because it lacks the `get' accessor
+// CS0154: The property or indexer `Test.this[bool]' cannot be used in this 
context because it lacks a `get' accessor
 // Line: 13
 
 class Test
@@ -12,4 +12,4 @@
        {
                int i = new Test()[false];
        }
-}
\ No newline at end of file
+}

Modified: trunk/mcs/errors/cs0200-2.cs
===================================================================
--- trunk/mcs/errors/cs0200-2.cs        2007-10-08 14:02:45 UTC (rev 87094)
+++ trunk/mcs/errors/cs0200-2.cs        2007-10-08 14:04:14 UTC (rev 87095)
@@ -1,4 +1,4 @@
-// CS0200: Property or indexer 'X.this[int]' cannot be assigned to -- it is 
read only
+// CS0200: The read only property or indexer `X.this[int]' cannot be assigned 
to
 // Line: 12
 
 class X {

Added: trunk/mcs/errors/cs0214-10.cs
===================================================================
--- trunk/mcs/errors/cs0214-10.cs       2007-10-08 14:02:45 UTC (rev 87094)
+++ trunk/mcs/errors/cs0214-10.cs       2007-10-08 14:04:14 UTC (rev 87095)
@@ -0,0 +1,14 @@
+// CS0214: Pointers and fixed size buffers may only be used in an unsafe 
context
+// Line: 12
+// Compiler options: -unsafe
+
+using System;
+
+class X {
+       public unsafe int* A { set { } }
+       
+       void Foo ()
+       {
+               A = null;
+       }
+}


Property changes on: trunk/mcs/errors/cs0214-10.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/mcs/errors/cs0214-11.cs
===================================================================
--- trunk/mcs/errors/cs0214-11.cs       2007-10-08 14:02:45 UTC (rev 87094)
+++ trunk/mcs/errors/cs0214-11.cs       2007-10-08 14:04:14 UTC (rev 87095)
@@ -0,0 +1,14 @@
+// CS0214: Pointers and fixed size buffers may only be used in an unsafe 
context
+// Line: 12
+// Compiler options: -unsafe
+
+using System;
+
+class X {
+       public unsafe int* this [int i] { set { } }
+       
+       void Foo ()
+       {
+               this [0] = null;
+       }
+}


Property changes on: trunk/mcs/errors/cs0214-11.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/mcs/errors/cs0271-2.cs
===================================================================
--- trunk/mcs/errors/cs0271-2.cs        2007-10-08 14:02:45 UTC (rev 87094)
+++ trunk/mcs/errors/cs0271-2.cs        2007-10-08 14:04:14 UTC (rev 87095)
@@ -0,0 +1,15 @@
+// CS0271: The property or indexer `C.this[string]' cannot be used in this 
context because a `set' accessor is inaccessible
+// Line: 13
+
+class C
+{
+       public int this [string i] { private set { } get { return 1; } }
+}
+
+public class Test
+{
+       void Foo ()
+       {       C c = new C ();
+               c [""] = 9;
+       }
+}


Property changes on: trunk/mcs/errors/cs0271-2.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/mcs/errors/cs1501.cs
===================================================================
--- trunk/mcs/errors/cs1501.cs  2007-10-08 14:02:45 UTC (rev 87094)
+++ trunk/mcs/errors/cs1501.cs  2007-10-08 14:04:14 UTC (rev 87095)
@@ -0,0 +1,12 @@
+// CS1501: No overload for method `this' takes `2' arguments
+// Line : 10
+
+class C
+{
+       public bool this [int i] { get { return false; } set {} }
+       
+       void Foo ()
+       {       C c = new C ();
+               c [0, 0] = null;
+       }
+}


Property changes on: trunk/mcs/errors/cs1501.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/mcs/errors/known-issues-gmcs
===================================================================
--- trunk/mcs/errors/known-issues-gmcs  2007-10-08 14:02:45 UTC (rev 87094)
+++ trunk/mcs/errors/known-issues-gmcs  2007-10-08 14:04:14 UTC (rev 87095)
@@ -14,7 +14,7 @@
 cs0019-20.cs
 cs0158-5.cs
 cs0162-7.cs NO ERROR
-cs0200-2.cs
+cs0214-10.cs
 cs0525.cs
 cs0526.cs
 cs0531.cs
@@ -33,6 +33,7 @@
 cs1624-3.cs NO ERROR
 cs1670-2.cs
 
+
 # Operators
 cs0035.cs
 cs0266-11.cs

Modified: trunk/mcs/errors/known-issues-mcs
===================================================================
--- trunk/mcs/errors/known-issues-mcs   2007-10-08 14:02:45 UTC (rev 87094)
+++ trunk/mcs/errors/known-issues-mcs   2007-10-08 14:04:14 UTC (rev 87095)
@@ -14,7 +14,6 @@
 cs0019-20.cs
 cs0158-5.cs
 cs0162-7.cs NO ERROR
-cs0200-2.cs
 cs0525.cs
 cs0526.cs
 cs0547.cs
@@ -36,3 +35,5 @@
 cs0266-9.cs
 cs0457-2.cs
 cs0457.cs
+
+cs0214-10.cs

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

Reply via email to