* TaskLoggingHelper.cs (LogErrorFromException): Add missing overload.
[mcs.git] / tests / test-457.cs
blobca8b4aa92ef82a9abd6ebfbb0aff4079835a17d4
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 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;