[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-nameof-04.cs
blob929aa1159f208624578330a1d8818d821a447b89
1 interface IA
3 void M (int arg);
4 int Prop { get; set; }
7 interface IB
9 void M (string arg);
10 void M<T> (T arg);
11 int Prop { get; set; }
14 interface I : IA, IB
16 void Extra (string method = nameof (M), string prop = nameof (Prop));
19 class Ambiguous
21 public static int Main ()
23 string res;
24 res = nameof (I.M);
25 if (res != "M")
26 return 1;
28 res = nameof (I.Prop);
29 if (res != "Prop")
30 return 2;
32 return 0;