summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0831-2.cs
blob: ed0f3516ad101367ee461fc4dc9fd701e64d2157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// CS0831:  An expression tree may not contain a base access
// Line: 14

using System;
using System.Linq.Expressions;

class B
{
	protected bool Core {
		get {
			return true;
		}
	}
}

class C : B
{
	public void Test ()
	{
		Expression<Func<bool>> e = () => base.Core;
	}
}