Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / test-15.cs
1 using System;
2
3 interface Iface {
4         int A ();
5 }
6
7 class Implementor : Iface {
8         public int A () {
9                 return 1;
10         }
11 }
12
13 struct StructImplementor : Iface {
14         public int A () {
15                 return 2;
16         }
17 }
18 class Run {
19
20         public static int Main ()
21         {
22                 Iface iface;
23                 Implementor i = new Implementor ();
24
25                 iface = i;
26                 if (iface.A () != 1)
27                         return 1;
28
29                 StructImplementor s = new StructImplementor ();
30                 Iface xiface = (Iface) s;
31                 if (xiface.A () != 2)
32                         return 2;
33                 
34                 return 0;
35         }
36 }