summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0029-35.cs
blob: c2330990f12104ccbd756153adc5b8d4c955ac99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// CS0029: Cannot implicitly convert type `string' to `int'
// Line: 10
// Compiler options: -unsafe

class TestClass
{
	public unsafe static void Main ()
	{
		int* arr = null;
		var i = arr["c"];
	}
}