summaryrefslogtreecommitdiff
path: root/mcs/errors/cs8072.cs
blob: e53e9069ac9760083aa17342db5346e37f2f5e32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS8072: An expression tree cannot contain a null propagating operator
// Line: 11

using System;
using System.Linq.Expressions;

class C
{
	static int Main ()
	{
		Expression<Func<string, char?>> e = l => l?[1];
		return 0;
	}
}