a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
25 lines
310 B
C#
25 lines
310 B
C#
// CS0176: Static member `A.Foo()' cannot be accessed with an instance reference, qualify it with a type name instead
|
|
// Line: 21
|
|
|
|
public class A
|
|
{
|
|
public static void Foo ()
|
|
{
|
|
}
|
|
}
|
|
|
|
public class Test
|
|
{
|
|
static A Prop
|
|
{
|
|
get {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
Test.Prop.Foo ();
|
|
}
|
|
}
|