Fix Tuples.cs code generator
authorAndrea Canciani <ranma42@gmail.com>
Thu, 26 Dec 2013 16:18:10 +0000 (17:18 +0100)
committerAndrea Canciani <ranma42@gmail.com>
Thu, 26 Dec 2013 16:45:46 +0000 (17:45 +0100)
The code generator in Tuple.cs did not build because of missing
escaping of a string.

mcs/class/corlib/System/Tuples.cs

index ac15adfec632030813461fdb69697b3390b587ce..2323505705209999b68c20960211742d8706f16e 100644 (file)
@@ -881,7 +881,7 @@ public class TupleGen
                        Console.WriteLine ("\t\t\tvar t = other as {0};", type_name);
                        Console.WriteLine ("\t\t\tif (t == null) {");
                        Console.WriteLine ("\t\t\t\tif (other == null) return 1;");
-                       Console.WriteLine ("\t\t\t\tthrow new ArgumentException ("other");");
+                       Console.WriteLine ("\t\t\t\tthrow new ArgumentException (\"other\");");
                        Console.WriteLine ("\t\t\t}");
                        Console.WriteLine ();