blob: 36021768b4247e5966ca9fe53e58943a0bc07175 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// CS1540: Cannot access protected member `Parent.Foo()' via a qualifier of type `Parent'. The qualifier must be of type `Child' or derived from it
// Line: 8
// Compiler options: -r:CS1540-15-lib.dll
public class Child : Parent
{
public void Bar (Parent p)
{
p.Foo ();
}
}
|