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-10-12 13:52:45 +0400
committerMarek Safar <marek.safar@gmail.com>2010-10-12 14:22:56 +0400
commit114aeec4b550102b5f338fa45fd236831321d873 (patch)
treecd49692a2916e929578004a92d12cef0a87ce4c1 /mcs/tests/dtest-037.cs
parentd2ba33592c52a5732b1848ed224103e814069fe3 (diff)
[645572] Import more type as possible dynamic types.
Diffstat (limited to 'mcs/tests/dtest-037.cs')
-rw-r--r--mcs/tests/dtest-037.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/tests/dtest-037.cs b/mcs/tests/dtest-037.cs
new file mode 100644
index 00000000000..876cfb76c4d
--- /dev/null
+++ b/mcs/tests/dtest-037.cs
@@ -0,0 +1,32 @@
+// Compiler options: -r:dtest-037-lib.dll
+
+enum E
+{
+ Value = 9
+}
+
+class C
+{
+ public static int Main ()
+ {
+ var t = new External ();
+ t.DynamicProperty = "test";
+ string s = t.DynamicProperty;
+ if (s != "test")
+ return 1;
+
+ t.Field = 's';
+ if (t.Field != 's')
+ return 2;
+
+ if (t.Method (E.Value) != E.Value)
+ return 3;
+
+ dynamic d;
+ t.MethodOut (out d);
+ if (d != decimal.MaxValue)
+ return 4;
+
+ return 0;
+ }
+} \ No newline at end of file