[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-84.cs
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 //
10
11 class Ghost {
12
13         public static int Main ()
14         {
15                 int Ghost = 0;
16                 
17                 if (true){
18                         Ghost g = null;
19                 }
20                 return 0;
21         }
22 }