[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / test-155.cs
blob6a0f083c2c1c0a3f79ba902ada9c32c8a8db0661
1 using System;
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;
13 public interface TestInterface {
14 string test(string name);
17 public class TestClass: TestInterface {
18 public string test(string name) {
19 Console.WriteLine("test2");
20 return name + " testar";