2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / tests / test-126.cs
blob26ed4190a206e8f9dedd72e06833525f2cafbb1b
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 static int Main ()
16 X x = new X ();
17 Iface f = x;
19 if (f.ToString () != "X")
20 return 1;
22 return 0;