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

using System;
using System.Linq.Expressions;

class B
{
	protected int Core ()
	{
		return 4;
	}
}

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