summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1972.cs
blob: 550a6c2e9542a306a00fa820db22db8d325015ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS1972: The indexer base access cannot be dynamically dispatched. Consider casting the dynamic arguments or eliminating the base access
// Line: 18

class A
{
	public int this [int i] {
		get {
			return i;
		}
	}
}

class B : A
{
	public void Test ()
	{
		dynamic d = null;
		var r = base [d];
	}
}