2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git] / tests / test-15.cs
blob2ee08a7e6f5102dc904423d612e80121f84f6a75
1 using System;
3 interface Iface {
4 int A ();
7 class Implementor : Iface {
8 public int A () {
9 return 1;
13 struct StructImplementor : Iface {
14 public int A () {
15 return 2;
18 class Run {
20 static int Main ()
22 Iface iface;
23 Implementor i = new Implementor ();
25 iface = i;
26 if (iface.A () != 1)
27 return 1;
29 StructImplementor s = new StructImplementor ();
30 Iface xiface = (Iface) s;
31 if (xiface.A () != 2)
32 return 2;
34 return 0;