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>2017-12-21 13:18:37 +0300
committerMarek Safar <marek.safar@gmail.com>2017-12-21 14:54:49 +0300
commitc709e42040331878e1fcec4ff178623074c46a66 (patch)
tree9c24622bee78bcf45260bdf853decc801fffefd4 /mcs/tests/gtest-409.cs
parentfa9acab81164a78569d725bc1f84bf367e5092f9 (diff)
[mcs] Fixes parsing of default literal inside conditional expression
Diffstat (limited to 'mcs/tests/gtest-409.cs')
-rw-r--r--mcs/tests/gtest-409.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/tests/gtest-409.cs b/mcs/tests/gtest-409.cs
index 8db59d7e48d..606ae3685d1 100644
--- a/mcs/tests/gtest-409.cs
+++ b/mcs/tests/gtest-409.cs
@@ -1,3 +1,4 @@
+// Compiler options: -langversion:latest
using System;
//
@@ -175,6 +176,11 @@ public class ConditionalParsing
var x = args ?.2f : -.2f;
}
+ void Test_23 (string args)
+ {
+ var x = args == null ? default : 1;
+ }
+
static void Helper<T> (T arg)
{
}