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>2010-08-26 11:53:14 +0400
committerMarek Safar <marek.safar@gmail.com>2010-08-26 11:55:49 +0400
commita922e63a528115cfe73c2c61156e52a19d2c5857 (patch)
tree89d85a42bbead7a05d25b585eda7c26d35323b96 /mcs/tests/dtest-026.cs
parentfbc2a97fbec8825423c125841cf2e032ce51b1d8 (diff)
Special case unbox SLE conversion
Diffstat (limited to 'mcs/tests/dtest-026.cs')
-rw-r--r--mcs/tests/dtest-026.cs21
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;
+ }
+}