Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-nameof-04.cs
1 interface IA
2 {
3         void M (int arg);
4         int Prop { get; set; }
5 }
6
7 interface IB
8 {
9         void M (string arg);
10         void M<T> (T arg);
11         int Prop { get; set; }
12 }
13
14 interface I : IA, IB
15 {
16         void Extra (string method = nameof (M), string prop = nameof (Prop));
17 }
18
19 class Ambiguous
20 {
21         public static int Main ()
22         {
23                 string res;
24                 res = nameof (I.M);
25                 if (res != "M")
26                         return 1;
27
28                 res = nameof (I.Prop);
29                 if (res != "Prop")
30                         return 2;
31
32                 return 0;
33         }
34 }