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:
authorMiguel de Icaza <miguel@gnome.org>2001-10-27 04:10:42 +0400
committerMiguel de Icaza <miguel@gnome.org>2001-10-27 04:10:42 +0400
commit36ea61ab99a92e52da4d4ad2e5f62cbd9a8ea58e (patch)
treef32f1748bdaf6d979d27c41f791b2e4f26a8e4f7 /mcs/tests/test-30.cs
parent4cd8207aae62d348f3e6a39c50ff3e67167a273e (diff)
These tests are used for testing the C# versioning provisions. I have
not tested them yet. svn path=/trunk/mcs/; revision=1206
Diffstat (limited to 'mcs/tests/test-30.cs')
-rw-r--r--mcs/tests/test-30.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/mcs/tests/test-30.cs b/mcs/tests/test-30.cs
new file mode 100644
index 00000000000..6b6a99168a7
--- /dev/null
+++ b/mcs/tests/test-30.cs
@@ -0,0 +1,37 @@
+//
+// Tests whether we implement the correct methods from interfaces
+//
+interface IA {
+ void Draw ();
+}
+
+interface IB {
+ void Draw ();
+}
+
+class X : IA, IB {
+ bool ia_called;
+ bool ib_called;
+
+ void IA.Draw ()
+ {
+ ia_called = true;
+ }
+
+ void IB.Draw ()
+ {
+ ib_called = true;
+ }
+}
+
+class test {
+
+ static int Main ()
+ {
+ X x = new X ();
+
+ ((IA) x).Draw ();
+ }
+}
+
+