[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / test-84.cs
blob438760f5a712ff0f9e2a044ddac94540f14ca555
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 public static int Main ()
15 int Ghost = 0;
17 if (true){
18 Ghost g = null;
20 return 0;