blob: 45d88389143344c54341d226e89fa8cb8a3ef632 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// CS0038: Cannot access a nonstatic member of outer type `A' via nested type `B.C'
// Line: 15
public class A {
public int Foo { get { return 1; } }
}
public class B : A {
public static void Main ()
{
}
public class C {
public void Baz ()
{
int x = Foo;
}
}
}
|