Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-64.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 434d689737e416662f57b70f1d7a4b4c4a4292bd (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
25
26
27
28
29
//
// This just test that we can compile this code.
//
// The challenge here is that LookupType needs to first look
// in classes defined in its class or parent classes before resorting
// to lookups in the namespace.
//

class Operator {
}

class Blah {

	public enum Operator { A, B };
	
	public Blah (Operator x)
	{
	}
}

class T {
	public static int Main ()
	{
		Blah b = new Blah (Blah.Operator.A);

		return 0;
	}
}