Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / test-126.cs
blobfd3f6d11ad46473bf978c1811d30b2a5182eaa6c
1 //
2 // It is possible to invoke object methods in an interface.
3 //
4 using System;
6 interface Iface {
7 void Method ();
10 class X : Iface {
12 void Iface.Method () {}
14 public static int Main ()
16 X x = new X ();
17 Iface f = x;
19 if (f.ToString () != "X")
20 return 1;
22 return 0;