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>2002-05-26 04:47:45 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-05-26 04:47:45 +0400
commitd4c48e6e62819da51d50a1cf8508dccd40239204 (patch)
tree488e29e40eebc264bbb80b84b45c40103fedc653 /mcs/tests/test-126.cs
parentaaa4e5c7c4a76ea9f062bae67e4f525f9b9000a2 (diff)
Add new test
svn path=/trunk/mcs/; revision=4936
Diffstat (limited to 'mcs/tests/test-126.cs')
-rwxr-xr-xmcs/tests/test-126.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/tests/test-126.cs b/mcs/tests/test-126.cs
new file mode 100755
index 00000000000..26ed4190a20
--- /dev/null
+++ b/mcs/tests/test-126.cs
@@ -0,0 +1,24 @@
+//
+// It is possible to invoke object methods in an interface.
+//
+using System;
+
+interface Iface {
+ void Method ();
+}
+
+class X : Iface {
+
+ void Iface.Method () {}
+
+ static int Main ()
+ {
+ X x = new X ();
+ Iface f = x;
+
+ if (f.ToString () != "X")
+ return 1;
+
+ return 0;
+ }
+}