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

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

class A
{
	public void Foo (int i)
	{
	}
}

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