New test.
[mono.git] / mcs / tests / test-155.cs
1 using System;
2
3 class Test {
4         public static int Main() {
5                 Console.WriteLine("test");
6                 TestClass tst = new TestClass();
7                 tst.test("test");
8                 TestInterface ti = (TestInterface)tst;
9                 ti.test("test");
10                 return 0;
11         }
12
13         public interface TestInterface {
14                 string test(string name);
15         }
16
17         public class TestClass: TestInterface {
18                 public string test(string name) {
19                     Console.WriteLine("test2");
20                     return name + " testar";
21                 }
22         }
23 }