Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2009-06-29 14:06:14 +0400
committerMarek Safar <marek.safar@gmail.com>2009-06-29 14:06:14 +0400
commit9c295c55879f4bad95c190af0a19bc1837119bc5 (patch)
tree6d29b05c6efa84665f3c376bce38c9290dcfd9e7 /mcs/errors
parentb94f6444a51f69cd3ae7c9bff285a835ad0e7163 (diff)
New test.
svn path=/trunk/mcs/; revision=137064
Diffstat (limited to 'mcs/errors')
-rw-r--r--mcs/errors/gcs1501-4.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/errors/gcs1501-4.cs b/mcs/errors/gcs1501-4.cs
new file mode 100644
index 00000000000..f64a51f6bc3
--- /dev/null
+++ b/mcs/errors/gcs1501-4.cs
@@ -0,0 +1,19 @@
+// CS1501: No overload for method `Test' takes `2' arguments
+// Line: 16
+// Compiler options: -langversion:future
+
+static class S
+{
+ public static int Test (this int value)
+ {
+ return value;
+ }
+}
+
+class M
+{
+ public static void Main ()
+ {
+ 1.Test (value: 1);
+ }
+}