Browse Source

Removed deprecated -langversion:linq

svn path=/trunk/mcs/; revision=96063
Marek Safar 18 năm trước cách đây
mục cha
commit
2dfec2eb59
74 tập tin đã thay đổi với 85 bổ sung77 xóa
  1. 1 1
      mcs/tests/gtest-337.cs
  2. 1 1
      mcs/tests/gtest-anon-17.cs
  3. 1 1
      mcs/tests/gtest-anon-18.cs
  4. 1 1
      mcs/tests/gtest-anon-19.cs
  5. 1 1
      mcs/tests/gtest-anontype-01.cs
  6. 1 1
      mcs/tests/gtest-anontype-02.cs
  7. 1 1
      mcs/tests/gtest-anontype-03.cs
  8. 1 1
      mcs/tests/gtest-anontype-04.cs
  9. 1 1
      mcs/tests/gtest-anontype-05.cs
  10. 1 1
      mcs/tests/gtest-anontype-06.cs
  11. 1 1
      mcs/tests/gtest-anontype-07.cs
  12. 1 1
      mcs/tests/gtest-autoproperty-01.cs
  13. 1 1
      mcs/tests/gtest-autoproperty-02.cs
  14. 1 1
      mcs/tests/gtest-autoproperty-03.cs
  15. 1 1
      mcs/tests/gtest-collectioninit-01.cs
  16. 1 1
      mcs/tests/gtest-collectioninit-02.cs
  17. 1 1
      mcs/tests/gtest-exmethod-01.cs
  18. 1 1
      mcs/tests/gtest-exmethod-02-lib.cs
  19. 1 1
      mcs/tests/gtest-exmethod-02.cs
  20. 1 1
      mcs/tests/gtest-exmethod-03.cs
  21. 1 1
      mcs/tests/gtest-exmethod-04-lib.cs
  22. 1 1
      mcs/tests/gtest-exmethod-04.cs
  23. 1 1
      mcs/tests/gtest-exmethod-05.cs
  24. 1 1
      mcs/tests/gtest-exmethod-06.cs
  25. 1 1
      mcs/tests/gtest-exmethod-07.cs
  26. 1 1
      mcs/tests/gtest-exmethod-08.cs
  27. 1 1
      mcs/tests/gtest-exmethod-09.cs
  28. 1 1
      mcs/tests/gtest-exmethod-10.cs
  29. 1 1
      mcs/tests/gtest-exmethod-11.cs
  30. 1 1
      mcs/tests/gtest-exmethod-12.cs
  31. 1 1
      mcs/tests/gtest-exmethod-13.cs
  32. 1 1
      mcs/tests/gtest-exmethod-14.cs
  33. 1 1
      mcs/tests/gtest-exmethod-15.cs
  34. 1 1
      mcs/tests/gtest-implicitarray-01.cs
  35. 1 1
      mcs/tests/gtest-initialize-01.cs
  36. 1 1
      mcs/tests/gtest-initialize-02.cs
  37. 1 1
      mcs/tests/gtest-initialize-03.cs
  38. 1 1
      mcs/tests/gtest-initialize-04.cs
  39. 1 1
      mcs/tests/gtest-initialize-05.cs
  40. 1 1
      mcs/tests/gtest-initialize-06.cs
  41. 1 1
      mcs/tests/gtest-linq-01.cs
  42. 1 1
      mcs/tests/gtest-linq-02.cs
  43. 1 1
      mcs/tests/gtest-linq-03.cs
  44. 1 1
      mcs/tests/gtest-linq-04.cs
  45. 1 1
      mcs/tests/gtest-linq-05.cs
  46. 1 1
      mcs/tests/gtest-linq-06.cs
  47. 1 1
      mcs/tests/gtest-linq-07.cs
  48. 1 1
      mcs/tests/gtest-linq-08.cs
  49. 1 1
      mcs/tests/gtest-linq-09.cs
  50. 1 1
      mcs/tests/gtest-linq-10.cs
  51. 1 1
      mcs/tests/gtest-linq-11.cs
  52. 12 4
      mcs/tests/gtest-linq-12.cs
  53. 1 1
      mcs/tests/gtest-partial-01.cs
  54. 1 1
      mcs/tests/gtest-partial-02.cs
  55. 1 1
      mcs/tests/gtest-partial-03.cs
  56. 1 1
      mcs/tests/gtest-var-01.cs
  57. 1 1
      mcs/tests/gtest-var-02.cs
  58. 1 1
      mcs/tests/gtest-var-03.cs
  59. 1 1
      mcs/tests/gtest-var-04.cs
  60. 1 1
      mcs/tests/gtest-var-05.cs
  61. 1 1
      mcs/tests/gtest-var-06.cs
  62. 1 1
      mcs/tests/gtest-var-07.cs
  63. 1 1
      mcs/tests/gtest-var-08.cs
  64. 1 1
      mcs/tests/ltest-01.cs
  65. 1 1
      mcs/tests/ltest-02.cs
  66. 1 1
      mcs/tests/ltest-03.cs
  67. 1 1
      mcs/tests/ltest-04.cs
  68. 1 1
      mcs/tests/ltest-05.cs
  69. 1 1
      mcs/tests/ltest-07.cs
  70. 1 1
      mcs/tests/ltest-08.cs
  71. 1 1
      mcs/tests/ltest-09.cs
  72. 1 1
      mcs/tests/ltest-10.cs
  73. 1 1
      mcs/tests/ltest-11.cs
  74. 1 1
      mcs/tests/ltest-12.cs

+ 1 - 1
mcs/tests/gtest-337.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 

+ 1 - 1
mcs/tests/gtest-anon-17.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Supported by C# 3.0
 
 public class C

+ 1 - 1
mcs/tests/gtest-anon-18.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Supported by C# 3.0
 
 public class C

+ 1 - 1
mcs/tests/gtest-anon-19.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 // Test case for bug: #349034
 

+ 1 - 1
mcs/tests/gtest-anontype-01.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests anonymous types
 using System;
 using System.Collections;

+ 1 - 1
mcs/tests/gtest-anontype-02.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests anonymous types initialized with local variables
 using System;
 using System.Collections;

+ 1 - 1
mcs/tests/gtest-anontype-03.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests anonymous types initialized with object members
 using System;
 using System.Collections;

+ 1 - 1
mcs/tests/gtest-anontype-04.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests anonymous types initialized with a mix of literals, local variables and object members
 using System;
 using System.Collections;

+ 1 - 1
mcs/tests/gtest-anontype-05.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests anonymous type consolidation
 
 using System;

+ 1 - 1
mcs/tests/gtest-anontype-06.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 // "cast by example" test
 

+ 1 - 1
mcs/tests/gtest-anontype-07.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections;

+ 1 - 1
mcs/tests/gtest-autoproperty-01.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests automatic properties
 using System;
 

+ 1 - 1
mcs/tests/gtest-autoproperty-02.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests static automatic properties
 using System;
 

+ 1 - 1
mcs/tests/gtest-autoproperty-03.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Make sure that the field and accessor methods of an automatic property have the CompilerGenerated attribute
 using System;
 using System.Reflection;

+ 1 - 1
mcs/tests/gtest-collectioninit-01.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests collection initialization
 
 using System;

+ 1 - 1
mcs/tests/gtest-collectioninit-02.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System.Collections.Generic;
 

+ 1 - 1
mcs/tests/gtest-exmethod-01.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 

+ 1 - 1
mcs/tests/gtest-exmethod-02-lib.cs

@@ -1,4 +1,4 @@
-// Compiler options: -t:library -langversion:linq
+// Compiler options: -t:library
 
 using System;
 

+ 1 - 1
mcs/tests/gtest-exmethod-02.cs

@@ -1,4 +1,4 @@
-// Compiler options: -r:gtest-exmethod-02-lib.dll -langversion:linq
+// Compiler options: -r:gtest-exmethod-02-lib.dll
 
 using System;
 

+ 1 - 1
mcs/tests/gtest-exmethod-03.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 

+ 1 - 1
mcs/tests/gtest-exmethod-04-lib.cs

@@ -1,4 +1,4 @@
-// Compiler options: -t:library -langversion:linq
+// Compiler options: -t:library
 
 using System;
 

+ 1 - 1
mcs/tests/gtest-exmethod-04.cs

@@ -1,4 +1,4 @@
-// Compiler options: -r:gtest-exmethod-04-lib.dll -langversion:linq
+// Compiler options: -r:gtest-exmethod-04-lib.dll
 
 namespace A
 {

+ 1 - 1
mcs/tests/gtest-exmethod-05.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 namespace A
 {

+ 1 - 1
mcs/tests/gtest-exmethod-06.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 public static class Gen
 {

+ 1 - 1
mcs/tests/gtest-exmethod-07.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System.Collections.Generic;
 

+ 1 - 1
mcs/tests/gtest-exmethod-08.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // It tests collision between multiple external methods and also whether
 // we import external methods when same namespace does not exist locally
 

+ 1 - 1
mcs/tests/gtest-exmethod-09.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 static class Test
 {

+ 1 - 1
mcs/tests/gtest-exmethod-10.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 

+ 1 - 1
mcs/tests/gtest-exmethod-11.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 

+ 1 - 1
mcs/tests/gtest-exmethod-12.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Specialized;

+ 1 - 1
mcs/tests/gtest-exmethod-13.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-exmethod-14.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 

+ 1 - 1
mcs/tests/gtest-exmethod-15.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Reflection;

+ 1 - 1
mcs/tests/gtest-implicitarray-01.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests implicitly typed arrays
 
 public class Test

+ 1 - 1
mcs/tests/gtest-initialize-01.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests object initialization
 using System;
 using System.Collections;

+ 1 - 1
mcs/tests/gtest-initialize-02.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Uber-test for object and collection initialization
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-initialize-03.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections;

+ 1 - 1
mcs/tests/gtest-initialize-04.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-initialize-05.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 struct Point
 {

+ 1 - 1
mcs/tests/gtest-initialize-06.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 struct Point
 {

+ 1 - 1
mcs/tests/gtest-linq-01.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-linq-02.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-linq-03.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-linq-04.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-linq-05.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-linq-06.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-linq-07.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-linq-08.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 

+ 1 - 1
mcs/tests/gtest-linq-09.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-linq-10.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-linq-11.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 12 - 4
mcs/tests/gtest-linq-12.cs

@@ -1,12 +1,20 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Linq;
 
 class NestedQuery
-{
+{
+	public void XX ()
+	{
+		var enumerable = new string[] { "aba", "bbb", "bab", "aaa" }.
+			Select((values) => new { values = values, length = values.Length }).
+				Select((ti0) => ti0.values.Select ((type) => new { type = type, x = 9 }).Where((ti1) => (ti0.length == 3)).
+			Select((ti1) => ti1.type));
+	}
+	
 	public static int Main ()
-	{
+	{/*
 		var e = from values in new [] { "aba", "bbb", "bab", "aaa" }
 			where values.Length > 0
 			select from type in values
@@ -39,7 +47,7 @@ class NestedQuery
 			
 		if (counter != 12)
 			return 2;
-			
+			*/
 		return 0;
 	}
 }

+ 1 - 1
mcs/tests/gtest-partial-01.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 partial class C
 {

+ 1 - 1
mcs/tests/gtest-partial-02.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq -warnaserror
+// Compiler options: -warnaserror
 
 partial class C
 {

+ 1 - 1
mcs/tests/gtest-partial-03.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 namespace N
 {

+ 1 - 1
mcs/tests/gtest-var-01.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests variable type inference with the var keyword when assigning to build-in types
 using System;
 

+ 1 - 1
mcs/tests/gtest-var-02.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests variable type inference with the var keyword when assigning to user-defined types
 using System;
 

+ 1 - 1
mcs/tests/gtest-var-03.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests variable type inference with the var keyword when using the foreach statement with an array
 using System;
 using System.Collections;

+ 1 - 1
mcs/tests/gtest-var-04.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests variable type inference with the var keyword when using the foreach statement with generic collections
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/gtest-var-05.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests variable type inference with the var keyword when using the "using" statement
 using System;
 

+ 1 - 1
mcs/tests/gtest-var-06.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Tests variable type inference with the var keyword when using the for-statement
 
 using System;

+ 1 - 1
mcs/tests/gtest-var-07.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 // Tests `var' keyword contextual parsing
 

+ 1 - 1
mcs/tests/gtest-var-08.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 

+ 1 - 1
mcs/tests/ltest-01.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 //
 // Lambda expression test, basics.
 //

+ 1 - 1
mcs/tests/ltest-02.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 //
 // Lambda expression test overload resolution with parameterless arguments
 //

+ 1 - 1
mcs/tests/ltest-03.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 

+ 1 - 1
mcs/tests/ltest-04.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 //
 // This test is used to test the type information flow between arguments
 // in a generic method invocation, where:

+ 1 - 1
mcs/tests/ltest-05.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 

+ 1 - 1
mcs/tests/ltest-07.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 // Lambda parser tests
 

+ 1 - 1
mcs/tests/ltest-08.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Linq;

+ 1 - 1
mcs/tests/ltest-09.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 using System.Collections.Generic;
 
 delegate TD Func<TD>();

+ 1 - 1
mcs/tests/ltest-10.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 using System.Collections.Generic;

+ 1 - 1
mcs/tests/ltest-11.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;
 

+ 1 - 1
mcs/tests/ltest-12.cs

@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 
 using System;