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>2014-08-18 15:30:12 +0400
committerMarek Safar <marek.safar@gmail.com>2014-08-19 11:26:25 +0400
commita41a626dabd4219cf2daa752c8b56ceb2e2efd8c (patch)
tree70d61ef2db853ac6a875d3e7580827af02f88983 /mcs/tests/gtest-584.cs
parent9c46884097be71f50f4a61d358cc8de7b7d98509 (diff)
[mcs] More warnings for lifted nullable operators working on value types
Diffstat (limited to 'mcs/tests/gtest-584.cs')
-rw-r--r--mcs/tests/gtest-584.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/mcs/tests/gtest-584.cs b/mcs/tests/gtest-584.cs
index 3a5b7869195..eeb4992cc93 100644
--- a/mcs/tests/gtest-584.cs
+++ b/mcs/tests/gtest-584.cs
@@ -66,6 +66,14 @@ class C
if ((s & e) != null)
return 15;
+ var res1 = (E?) 1 == null;
+ if (res1)
+ return 16;
+
+ var res2 = null == (E?) 1;
+ if (res2)
+ return 17;
+
Console.WriteLine ("ok");
return 0;