a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
20 lines
279 B
C#
20 lines
279 B
C#
// 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;
|
|
}
|
|
}
|
|
}
|