[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-844.cs
blob1f7e5faa86ea6d646c5dd1b4d24912bc2dd35ecc
1 // Compiler options: -warn:4 -warnaserror
3 // Checks no CS0219 warning is issued
5 class C
7 int Prop { get { return 4; } }
9 int this[char arg] { get { return 2; } }
11 static void Foo (ref int arg)
15 public void Method (int i)
17 long p1 = Prop;
18 long p2 = new C ()['h'];
20 int arg = 1;
21 Foo (ref arg);
24 public static void Main ()