Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1972.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c3196d2d26a03f87ee6279416feb9d7e59d29324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS1972: The indexer base access cannot be dynamically dispatched. Consider casting the dynamic arguments or eliminating the base access
// Line: 18
// Compiler options: -langversion:future

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

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