[xbuild] Add new reserved properties $(MSBuildThisFile*).
[mono.git] / mcs / errors / dcs1972.cs
1 // CS1972: The indexer base access cannot be dynamically dispatched. Consider casting the dynamic arguments or eliminating the base access
2 // Line: 18
3 // Compiler options: -langversion:future
4
5 class A
6 {
7         public int this [int i] {
8                 get {
9                         return i;
10                 }
11         }
12 }
13
14 class B : A
15 {
16         public void Test ()
17         {
18                 dynamic d = null;
19                 var r = base [d];
20         }
21 }