Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

24 lines
615 B
C#

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";
}
}
}