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-24 18:23:50 +0400
committerMarek Safar <marek.safar@gmail.com>2010-08-25 13:21:12 +0400
commite4af525f15a0719e7b5b3da4b0c95b27a2e500cf (patch)
tree44b27ce0460ff2501ea996b89aab09d6ed8bb177 /mcs/tests/dtest-023.cs
parentefe4cb4270b4ae1a81e6c398faba4c23b1c2dd2b (diff)
Probing dynamic compatibility is identical to object
Diffstat (limited to 'mcs/tests/dtest-023.cs')
-rw-r--r--mcs/tests/dtest-023.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/tests/dtest-023.cs b/mcs/tests/dtest-023.cs
new file mode 100644
index 00000000000..9b4602cee79
--- /dev/null
+++ b/mcs/tests/dtest-023.cs
@@ -0,0 +1,16 @@
+struct S
+{
+}
+
+class C
+{
+ public static int Main ()
+ {
+ dynamic d = new S ();
+ bool b = d is S;
+ if (!b)
+ return 1;
+
+ return 0;
+ }
+}