summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1742-2.cs
blob: 112d15c092ed110ffa597f22c9dfadfc05ebf110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS1742: An element access expression cannot use named argument
// Line: 13
// Compiler options: -unsafe

using System;

unsafe class C
{
	static void Main ()
	{
		int *p = null;

		if (p [value:10] == 4)
			return;
	}
}