summaryrefslogtreecommitdiff
path: root/mcs/tests/test-767.cs
blob: 25ea6ccb88ffe369c238644b02d0b05840c24aea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Test
{
	public static int Foo ()
	{
		return 5;
	}
	
	public static void Main ()
	{
	}
}

struct S
{
	static int v = Test.Foo ();
	
	Test Test { 
		get {
			return new Test ();
		}
	}
}