summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0176-8.cs
blob: e9a94d539a6936a9a7eca51872c35f4dd0f61bae (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS0176: Static member `string.Empty' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 9

class X
{
	public static void Main ()
	{
		string y = null;
		var x = y?.Empty;
	}
}