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>2013-02-15 14:58:24 +0400
committerMarek Safar <marek.safar@gmail.com>2013-02-15 15:05:03 +0400
commit9b9a7e2889aac52864d83a22e4feff7edd8332b7 (patch)
tree75424cc00ddde8d5c4fa26a48a567d7b6915f00f /mcs/tests/gtest-409.cs
parent895e7f47c3b5d4e8b40902b5f9f65de926c4cf7a (diff)
Fix more conditional ambiguity parser issues
Diffstat (limited to 'mcs/tests/gtest-409.cs')
-rw-r--r--mcs/tests/gtest-409.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/gtest-409.cs b/mcs/tests/gtest-409.cs
index 12f979cff36..9fcfc36056f 100644
--- a/mcs/tests/gtest-409.cs
+++ b/mcs/tests/gtest-409.cs
@@ -111,6 +111,23 @@ public class ConditionalParsing
if (param as bool? ?? false) {} else {}
}
+ int? Test_14 ()
+ {
+ bool a = false, b = false;
+ object c = null;
+
+ return a ? (b ? c as int? : null) : null;
+ }
+
+ Action<int> Test_15 (Action<int> arg)
+ {
+ return arg ?? (Helper<int>);
+ }
+
+ static void Helper<T> (T arg)
+ {
+ }
+
public static void Main ()
{
}