[runtime] Coverage profiler fixes (#5698)
[mono.git] / mcs / errors / cs1972.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
4 class A
5 {
6         public int this [int i] {
7                 get {
8                         return i;
9                 }
10         }
11 }
12
13 class B : A
14 {
15         public void Test ()
16         {
17                 dynamic d = null;
18                 var r = base [d];
19         }
20 }