diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-08-26 11:53:14 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-08-26 11:55:49 +0400 |
commit | a922e63a528115cfe73c2c61156e52a19d2c5857 (patch) | |
tree | 89d85a42bbead7a05d25b585eda7c26d35323b96 /mcs/tests/dtest-026.cs | |
parent | fbc2a97fbec8825423c125841cf2e032ce51b1d8 (diff) |
Special case unbox SLE conversion
Diffstat (limited to 'mcs/tests/dtest-026.cs')
-rw-r--r-- | mcs/tests/dtest-026.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mcs/tests/dtest-026.cs b/mcs/tests/dtest-026.cs new file mode 100644 index 00000000000..09790ed23b7 --- /dev/null +++ b/mcs/tests/dtest-026.cs @@ -0,0 +1,21 @@ +// Dynamic and value types + +struct S +{ + public int Value; +} + +class C +{ + static dynamic f; + + public static int Main () + { + f = new S (); + f.Value = 5; + if (f.Value != 5) + return 1; + + return 0; + } +} |