summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0176-7.cs
blob: 6d78ac4ec78d96eda4b530f50c3ecb7e4fcdee3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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 ();
	}
}