GenericParameter.cs: override Module properly
[mcs.git] / tests / test-84.cs
blobe6b3d4e3f0d73e7d429b23b52a6ed823afb8bf57
1 //
2 // This test shows how a variable can be created with the
3 // same name as the class, and then the class referenced again
4 //
5 // This was a bug exposed by Digger, as we incorrectly tried to
6 // do some work ahead of time during the resolution process
7 // (ie, we created LocalVariableReferences for the int variable `Ghost',
8 // which stopped `Ghost' from being useful as a type afterwards
9 //
11 class Ghost {
13 static int Main ()
15 int Ghost = 0;
17 if (true){
18 Ghost g = null;
20 return 0;