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
path: root/mcs/tests
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2018-01-11 16:52:00 +0300
committerMarek Safar <marek.safar@gmail.com>2018-01-15 19:59:44 +0300
commit46bb11eb337dd5cf951796265c00d1adf4b43d78 (patch)
tree818bc6b0ff614d4a53bf09430ac2aa4f34ea0695 /mcs/tests
parent5929e348e940ed1b433eb112d90a63394301a624 (diff)
[mcs] C# 7.2 non-trailing named arguments
Diffstat (limited to 'mcs/tests')
-rw-r--r--mcs/tests/test-named-11.cs13
-rw-r--r--mcs/tests/ver-il-net_4_x.xml13
2 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/test-named-11.cs b/mcs/tests/test-named-11.cs
new file mode 100644
index 00000000000..a01d2883b9c
--- /dev/null
+++ b/mcs/tests/test-named-11.cs
@@ -0,0 +1,13 @@
+// Compiler options: -langversion:7.2
+
+class X
+{
+ public static void Main ()
+ {
+ Test (arg: 1, "");
+ }
+
+ static void Test (int arg, string str)
+ {
+ }
+} \ No newline at end of file
diff --git a/mcs/tests/ver-il-net_4_x.xml b/mcs/tests/ver-il-net_4_x.xml
index 8f37458a29d..78e6782767e 100644
--- a/mcs/tests/ver-il-net_4_x.xml
+++ b/mcs/tests/ver-il-net_4_x.xml
@@ -70869,6 +70869,19 @@
</method>
</type>
</test>
+ <test name="test-named-11.cs">
+ <type name="X">
+ <method name="Void Main()" attrs="150">
+ <size>13</size>
+ </method>
+ <method name="Void Test(Int32, System.String)" attrs="145">
+ <size>2</size>
+ </method>
+ <method name="Void .ctor()" attrs="6278">
+ <size>7</size>
+ </method>
+ </type>
+ </test>
<test name="test-nameof-01.cs">
<type name="X">
<method name="Int32 Main()" attrs="150">