diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-08-23 16:45:53 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-08-23 18:18:31 +0400 |
commit | eb9a4272cc9e1fb172f442d80dde1cc12b59009e (patch) | |
tree | ca859ce9826629ae5811cc589cc3e4cd65bce0e7 /mcs/tests/gtest-named-03.cs | |
parent | ceca1e78175bbc1b355d5238301f971d5ebebe56 (diff) |
Fixed moving of named params arguments
Diffstat (limited to 'mcs/tests/gtest-named-03.cs')
-rw-r--r-- | mcs/tests/gtest-named-03.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/tests/gtest-named-03.cs b/mcs/tests/gtest-named-03.cs new file mode 100644 index 00000000000..144a33bf2c4 --- /dev/null +++ b/mcs/tests/gtest-named-03.cs @@ -0,0 +1,20 @@ +using System; + +public class C +{ + static int Foo (int a, int b = 1, int c = 1) + { + return a; + } + + public static int Main () + { + if (Foo (c: 5, a: 10) != 10) + return 1; + + if (Foo (a: 10) != 10) + return 2; + + return 0; + } +} |