[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git] / mcs / tests / test-457.cs
blob8a902b9c5504be36227809341ba70c02613ccaf4
1 // (note, this is taken from `13.2.5 Interface member access')
2 interface IInteger {
3 void Add(int i);
6 interface IDouble {
7 void Add(double d);
10 interface INumber: IInteger, IDouble {}
12 class Number : INumber {
13 void IDouble.Add (double d)
15 System.Console.WriteLine ("IDouble.Add (double d)");
17 void IInteger.Add (int d)
19 System.Console.WriteLine ("IInteger.Add (int d)");
22 public static int Main ()
24 INumber n = new Number ();
25 n.Add(1);
26 n.Add(1.0);
27 ((IInteger)n).Add(1);
28 ((IDouble)n).Add(1);
29 return 0;