Author: marek
Date: 2007-10-09 06:05:40 -0400 (Tue, 09 Oct 2007)
New Revision: 87154

Added:
   trunk/mcs/errors/gcs1644.cs
Modified:
   trunk/mcs/errors/cs1617.cs
   trunk/mcs/errors/gcs0721.cs
   trunk/mcs/errors/gcs1103.cs
   trunk/mcs/errors/gcs1105.cs
   trunk/mcs/errors/gcs1106-2.cs
   trunk/mcs/errors/gcs1106.cs
   trunk/mcs/errors/gcs1109.cs
   trunk/mcs/errors/gcs1110.cs
Log:
New test + updates.



Modified: trunk/mcs/errors/cs1617.cs
===================================================================
--- trunk/mcs/errors/cs1617.cs  2007-10-09 10:04:56 UTC (rev 87153)
+++ trunk/mcs/errors/cs1617.cs  2007-10-09 10:05:40 UTC (rev 87154)
@@ -1,3 +1,3 @@
-// cs1617.cs: Invalid option `ISO' for /langversion. It must be either `ISO-1' 
or `Default'
+// CS1617: Invalid option `ISO' for /langversion. It must be either `ISO-1', 
`ISO-2' or `Default'
 // Line: 0
 // Compiler options: -langversion:ISO

Modified: trunk/mcs/errors/gcs0721.cs
===================================================================
--- trunk/mcs/errors/gcs0721.cs 2007-10-09 10:04:56 UTC (rev 87153)
+++ trunk/mcs/errors/gcs0721.cs 2007-10-09 10:05:40 UTC (rev 87154)
@@ -1,9 +1,10 @@
 // CS0721: `C': static types cannot be used as parameters
 // Line: 6
+// Compiler options: -langversion:linq
 
 static class C
 {
        static void Foo (this C c)
        {
        }
-}
\ No newline at end of file
+}

Modified: trunk/mcs/errors/gcs1103.cs
===================================================================
--- trunk/mcs/errors/gcs1103.cs 2007-10-09 10:04:56 UTC (rev 87153)
+++ trunk/mcs/errors/gcs1103.cs 2007-10-09 10:05:40 UTC (rev 87154)
@@ -1,10 +1,10 @@
 // CS1103: The type of extension method cannot be `int*'
 // Line: 7
-// Compiler options: -unsafe
+// Compiler options: -unsafe -langversion:linq
 
 static class S
 {
        unsafe static void Foo (this int* iptr)
        {
        }
-}
\ No newline at end of file
+}

Modified: trunk/mcs/errors/gcs1105.cs
===================================================================
--- trunk/mcs/errors/gcs1105.cs 2007-10-09 10:04:56 UTC (rev 87153)
+++ trunk/mcs/errors/gcs1105.cs 2007-10-09 10:05:40 UTC (rev 87154)
@@ -1,9 +1,10 @@
 // CS1105: `S.Foo(this int?)': Extension methods must be declared static
 // Line: 6
+// Compiler options: -langversion:linq
 
 static class S
 {
        void Foo (this int? s)
        {
        }
-}
\ No newline at end of file
+}

Modified: trunk/mcs/errors/gcs1106-2.cs
===================================================================
--- trunk/mcs/errors/gcs1106-2.cs       2007-10-09 10:04:56 UTC (rev 87153)
+++ trunk/mcs/errors/gcs1106-2.cs       2007-10-09 10:05:40 UTC (rev 87154)
@@ -1,9 +1,10 @@
 // CS1106: `S<T>.Foo(this string)': Extension methods must be defined in a 
non-generic static class
 // Line: 6
+// Compiler options: -langversion:linq
 
 static class S<T>
 {
        static void Foo (this string s)
        {
        }
-}
\ No newline at end of file
+}

Modified: trunk/mcs/errors/gcs1106.cs
===================================================================
--- trunk/mcs/errors/gcs1106.cs 2007-10-09 10:04:56 UTC (rev 87153)
+++ trunk/mcs/errors/gcs1106.cs 2007-10-09 10:05:40 UTC (rev 87154)
@@ -1,9 +1,10 @@
 // CS1106: `S.Foo(this string)': Extension methods must be defined in a 
non-generic static class
 // Line: 6
+// Compiler options: -langversion:linq
 
 class S
 {
        static void Foo (this string s)
        {
        }
-}
\ No newline at end of file
+}

Modified: trunk/mcs/errors/gcs1109.cs
===================================================================
--- trunk/mcs/errors/gcs1109.cs 2007-10-09 10:04:56 UTC (rev 87153)
+++ trunk/mcs/errors/gcs1109.cs 2007-10-09 10:05:40 UTC (rev 87154)
@@ -1,5 +1,6 @@
 // CS1109: `C.S.Foo(this string)': Extension methods cannot be defined in a 
nested class
 // Line: 8
+// Compiler options: -langversion:linq
 
 class C
 {
@@ -9,4 +10,4 @@
                {
                }
        }
-}
\ No newline at end of file
+}

Modified: trunk/mcs/errors/gcs1110.cs
===================================================================
--- trunk/mcs/errors/gcs1110.cs 2007-10-09 10:04:56 UTC (rev 87153)
+++ trunk/mcs/errors/gcs1110.cs 2007-10-09 10:05:40 UTC (rev 87154)
@@ -1,10 +1,10 @@
 // CS1110: `C.Foo(this string)': Extension methods cannot be declared without 
a reference to System.Core.dll assembly. Add the assembly reference or remove 
`this' modifer from the first parameter
 // Line: 7
-// Compiler options: -noconfig
+// Compiler options: -noconfig -langversion:linq
 
 static class C
 {
        static void Foo (this string s)
        {
        }
-}
\ No newline at end of file
+}

Added: trunk/mcs/errors/gcs1644.cs
===================================================================
--- trunk/mcs/errors/gcs1644.cs 2007-10-09 10:04:56 UTC (rev 87153)
+++ trunk/mcs/errors/gcs1644.cs 2007-10-09 10:05:40 UTC (rev 87154)
@@ -0,0 +1,11 @@
+// CS1644: Feature `extension methods' cannot be used because it is not part 
of the C# 2.0 language specification
+// Line: 17
+// Compiler options: -langversion:ISO-2
+
+static class Extensions
+{
+       static string Foo (string s, this bool b, int i)
+       {
+               return s;
+       }
+}


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

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

Reply via email to