summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0507-5.cs
blob: 8ceeda60fe3e57e707b013a5a9b9fdfd777a2b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0507: `Bar.X()': cannot change access modifiers when overriding `protected internal' inherited member `Foo.X()'
// Line: 13

class Foo
{
	protected internal virtual void X ()
	{
	}
}

class Bar : Foo
{
	protected override void X ()
	{
	}
}