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>2016-11-22 19:01:15 +0300
committerMarek Safar <marek.safar@gmail.com>2016-11-22 19:02:38 +0300
commit2d189dc93c8af9c941b316a829b68b8ab3fbce10 (patch)
tree791449af309b6af65e7c3ae8a2aa05cd6f897d20 /mcs/tests/gtest-621.cs
parentd8693e0c73388503c06ebc009b753ef1488924af (diff)
[mcs] Null coalescing over typed null constants.
Diffstat (limited to 'mcs/tests/gtest-621.cs')
-rw-r--r--mcs/tests/gtest-621.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/tests/gtest-621.cs b/mcs/tests/gtest-621.cs
index cfff301328e..6444cb7918e 100644
--- a/mcs/tests/gtest-621.cs
+++ b/mcs/tests/gtest-621.cs
@@ -26,4 +26,10 @@ class X
return 0;
}
+
+ const Action cf = null;
+ void Foo (Action f)
+ {
+ var x = f ?? cf;
+ }
} \ No newline at end of file