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:
authorMartin Baulig <martin@novell.com>2002-08-02 02:31:54 +0400
committerMartin Baulig <martin@novell.com>2002-08-02 02:31:54 +0400
commit11e86809aa6c811f5ceaec3efe5650373238b28c (patch)
tree5dac46e22a0f403d796ee7525de5e0cc69998a93 /mcs/tests/test-155.cs
parentd2956e133a002d67b700d797fb1aedd244c5daa8 (diff)
2002-08-02 Martin Baulig <martin@gnome.org>
* makefile: Moved test-66.cs to TEST_NOPASS since there's currently a bug in the runtime which makes this crash. * test-155.cs: New test. svn path=/trunk/mcs/; revision=6338
Diffstat (limited to 'mcs/tests/test-155.cs')
-rw-r--r--mcs/tests/test-155.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/test-155.cs b/mcs/tests/test-155.cs
new file mode 100644
index 00000000000..6a0f083c2c1
--- /dev/null
+++ b/mcs/tests/test-155.cs
@@ -0,0 +1,23 @@
+using System;
+
+class Test {
+ public static int Main() {
+ Console.WriteLine("test");
+ TestClass tst = new TestClass();
+ tst.test("test");
+ TestInterface ti = (TestInterface)tst;
+ ti.test("test");
+ return 0;
+ }
+
+ public interface TestInterface {
+ string test(string name);
+ }
+
+ public class TestClass: TestInterface {
+ public string test(string name) {
+ Console.WriteLine("test2");
+ return name + " testar";
+ }
+ }
+}