summaryrefslogtreecommitdiff
path: root/mcs/errors/cs8093-2.cs
blob: 40597024143e5c6b6d1e63e617b901a97d63185b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// CS8093: An argument to nameof operator cannot be extension method group
// Line: 21

public class A
{
}

static class X
{
	public static string Extension (this int a)
	{
		return null;
	}
}

public static class Test
{
	public static void Main ()
	{
		A a = null;
		var x = nameof (a.Extension);
	}
}