2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / dcs1972.cs
blobc3196d2d26a03f87ee6279416feb9d7e59d29324
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
5 class A
7 public int this [int i] {
8 get {
9 return i;
14 class B : A
16 public void Test ()
18 dynamic d = null;
19 var r = base [d];