blob: 43c31d7559e703d43b56129a6d6c8696f33622ce (
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 {
static int Main ()
{
Blah b = new Blah (Blah.Operator.A);
return 0;
}
}
|