diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-10-01 20:48:33 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-10-01 22:39:01 +0400 |
commit | 76368b52590d0f61794a0f5e5d824e7c9488d7a3 (patch) | |
tree | 466121a1cd7a1757cc6562524118cccc9f923278 /mcs/tests/test-789.cs | |
parent | c45cae8a26d869dc9db7513f0564229189ae03f7 (diff) |
Implement compound assignment over null value
Diffstat (limited to 'mcs/tests/test-789.cs')
-rw-r--r-- | mcs/tests/test-789.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/mcs/tests/test-789.cs b/mcs/tests/test-789.cs index c91de6fe9c6..ac3d1631503 100644 --- a/mcs/tests/test-789.cs +++ b/mcs/tests/test-789.cs @@ -1,10 +1,13 @@ using System; -class Program { - static void Main () - { - Action action = () => Console.WriteLine (1); - action += null; - action (); - } +class Program +{ + static void Main () + { + Action action = () => Console.WriteLine (1); + action += null; + action = null + action; + action = action + null; + action (); + } } |