[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-550.cs
bloba845c129f3b6c8028b664c4c59d6726a83015d34
1 using System;
3 namespace Foo
5 public static class Magic
7 public interface IUpDown
9 int DestinationDimension { get; }
12 public static int Main ()
14 Magic<decimal>.Upsample (new Instance ());
15 return 0;
19 public static class Magic<T>
21 public interface IAccessible { T this[int index] { get; set; } }
23 public interface IUpDown : Magic.IUpDown, IAccessible { }
25 public static void Upsample (IUpDown o)
27 var count = o.DestinationDimension;
31 class Instance : Magic<decimal>.IUpDown
33 #region IUpDown Members
35 public int DestinationDimension
37 get
39 return 1;
43 #endregion
45 #region IAccessible Members
47 public decimal this[int index]
49 get
51 throw new NotImplementedException ();
53 set
55 throw new NotImplementedException ();
59 #endregion