Author: marek
Date: 2007-09-25 11:13:47 -0400 (Tue, 25 Sep 2007)
New Revision: 86332

Added:
   trunk/mcs/errors/gcs1930-2.cs
   trunk/mcs/errors/gcs1930.cs
   trunk/mcs/errors/gcs1931-2.cs
   trunk/mcs/errors/gcs1931-3.cs
   trunk/mcs/errors/gcs1931.cs
   trunk/mcs/errors/gcs1948.cs
Removed:
   trunk/mcs/errors/gcs0136.cs
Log:
New tests.



Deleted: trunk/mcs/errors/gcs0136.cs
===================================================================
--- trunk/mcs/errors/gcs0136.cs 2007-09-25 15:13:10 UTC (rev 86331)
+++ trunk/mcs/errors/gcs0136.cs 2007-09-25 15:13:47 UTC (rev 86332)
@@ -1,17 +0,0 @@
-// CS0136: A local variable named `ii' cannot be declared in this scope 
because it would give a different meaning to `ii', which is already used in a 
`parent' scope to denote something else
-// Line: 14
-// Compiler options: -langversion:linq
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-
-class Test
-{
-       public static void Main ()
-       {
-               int[] int_array = null;
-               int ii = 0;
-               IEnumerable<int> e = from int ii in int_array select "1";
-       }
-}

Added: trunk/mcs/errors/gcs1930-2.cs
===================================================================
--- trunk/mcs/errors/gcs1930-2.cs       2007-09-25 15:13:10 UTC (rev 86331)
+++ trunk/mcs/errors/gcs1930-2.cs       2007-09-25 15:13:47 UTC (rev 86332)
@@ -0,0 +1,17 @@
+// CS1930: A range variable `i' has already been declared in this scope
+// Line: 14
+// Compiler options: -langversion:linq
+
+using System;
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               var e = from v in "a"
+                       let i = 1
+                       let i = 2
+                       select v;
+       }
+}


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

Added: trunk/mcs/errors/gcs1930.cs
===================================================================
--- trunk/mcs/errors/gcs1930.cs 2007-09-25 15:13:10 UTC (rev 86331)
+++ trunk/mcs/errors/gcs1930.cs 2007-09-25 15:13:47 UTC (rev 86332)
@@ -0,0 +1,16 @@
+// CS1930: A range variable `v' has already been declared in this scope
+// Line: 13
+// Compiler options: -langversion:linq
+
+using System;
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               var e = from v in "a"
+                       let v = 1
+                       select v;
+       }
+}


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

Added: trunk/mcs/errors/gcs1931-2.cs
===================================================================
--- trunk/mcs/errors/gcs1931-2.cs       2007-09-25 15:13:10 UTC (rev 86331)
+++ trunk/mcs/errors/gcs1931-2.cs       2007-09-25 15:13:47 UTC (rev 86332)
@@ -0,0 +1,16 @@
+// CS1931: A range variable `i' conflicts with a previous declaration of `i'
+// Line: 13
+// Compiler options: -langversion:linq
+
+using System;
+using System.Linq;
+
+class C
+{
+       public void Foo (int i)
+       {
+               var e = from v in "a"
+                       let i = 2
+                       select v;
+       }
+}


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

Copied: trunk/mcs/errors/gcs1931-3.cs (from rev 85952, 
trunk/mcs/errors/gcs0136.cs)
===================================================================
--- trunk/mcs/errors/gcs0136.cs 2007-09-18 06:00:06 UTC (rev 85952)
+++ trunk/mcs/errors/gcs1931-3.cs       2007-09-25 15:13:47 UTC (rev 86332)
@@ -0,0 +1,17 @@
+// CS1931: A range variable `ii' conflicts with a previous declaration of `ii'
+// Line: 14
+// Compiler options: -langversion:linq
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+class Test
+{
+       public static void Main ()
+       {
+               int[] int_array = null;
+               int ii = 0;
+               IEnumerable<int> e = from int ii in int_array select "1";
+       }
+}

Added: trunk/mcs/errors/gcs1931.cs
===================================================================
--- trunk/mcs/errors/gcs1931.cs 2007-09-25 15:13:10 UTC (rev 86331)
+++ trunk/mcs/errors/gcs1931.cs 2007-09-25 15:13:47 UTC (rev 86332)
@@ -0,0 +1,17 @@
+// CS1931: A range variable `i' conflicts with a previous declaration of `i'
+// Line: 14
+// Compiler options: -langversion:linq
+
+using System;
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               int i = 9;
+               var e = from v in "a"
+                       let i = 2
+                       select v;
+       }
+}


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

Added: trunk/mcs/errors/gcs1948.cs
===================================================================
--- trunk/mcs/errors/gcs1948.cs 2007-09-25 15:13:10 UTC (rev 86331)
+++ trunk/mcs/errors/gcs1948.cs 2007-09-25 15:13:47 UTC (rev 86332)
@@ -0,0 +1,15 @@
+// CS1948: A range variable `T' conflicts with a method type parameter
+// Line: 12
+// Compiler options: -langversion:linq
+
+using System;
+using System.Linq;
+
+class C
+{
+       public static void Foo <T> ()
+       {
+               var e = from T in "a"
+                       select T;
+       }
+}


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

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

Reply via email to