Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

30 lines
423 B
C#

//
// 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;
}
}