Merge remote branch 'upstream/master'
[mono.git] / mcs / errors / cs0831-3.cs
1 // CS0831: An expression tree may not contain a base access
2 // Line: 20
3
4 using System;
5 using System.Linq.Expressions;
6
7 class B
8 {
9         protected B this [int i] {
10                 get {
11                         return null;
12                 }
13         }
14 }
15
16 class C : B
17 {
18         public void Test ()
19         {
20                 Expression<Func<B>> e = () => base [8];
21         }
22 }