Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs8093.cs
1 // CS8093: An argument to nameof operator cannot be extension method group
2 // Line: 35
3
4 using System;
5
6 public class A
7 {
8 }
9
10 namespace N1
11 {
12         public static class X
13         {
14                 public static string Extension (this A a, long x)
15                 {
16                         return null;
17                 }
18                 
19                 public static string Extension (this A a, int x)
20                 {
21                         return null;
22                 }
23         }
24 }
25
26 namespace N2
27 {
28         using N1;
29         
30         public class Program
31         {
32                 public static int Main ()
33                 {
34                         A a = null;
35                         const string n = nameof (a.Extension);
36                         if (n != "Extension")
37                                 return 1;
38
39                         return 0;
40                 }
41         }
42 }