diff options
author | Marek Safar <marek.safar@gmail.com> | 2015-10-12 19:58:27 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2015-10-12 20:00:07 +0300 |
commit | cea55b8eb93e800bc2a8a6af39312b3e4e7abab7 (patch) | |
tree | b0033d7013fda9998f7050cba298f20ed79f60b4 /mcs/tests/test-929.cs | |
parent | d037168755e35d51ab9794d6eed859aec6b90e5d (diff) |
[mcs] Special case null inside parenthesized expression. Fixes #34753
Diffstat (limited to 'mcs/tests/test-929.cs')
-rw-r--r-- | mcs/tests/test-929.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/test-929.cs b/mcs/tests/test-929.cs new file mode 100644 index 00000000000..d814b15f61a --- /dev/null +++ b/mcs/tests/test-929.cs @@ -0,0 +1,17 @@ +public class Wibble +{ + public static void Main () { + Wibble w = new Wibble(); + if (w == (null)) { + } + + if (w != (null)) { + } + + if ((null) == w) { + } + + if ((null) != w) { + } + } +}
\ No newline at end of file |