summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1739-4.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/errors/cs1739-4.cs')
-rw-r--r--mcs/errors/cs1739-4.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs1739-4.cs b/mcs/errors/cs1739-4.cs
new file mode 100644
index 0000000000..ab18a009be
--- /dev/null
+++ b/mcs/errors/cs1739-4.cs
@@ -0,0 +1,14 @@
+// CS1739: The best overloaded method match for `Program.M(int, int, int)' does not contain a parameter named `whatever'
+// Line: 8
+
+public class Program
+{
+ public static void Main ()
+ {
+ M (z: 1, whatever: 0);
+ }
+
+ void M (int x = 0, int y = 0, int z = 0)
+ {
+ }
+}