2009-05-29 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / errors / cs0136-6.cs
1 // cs0136-6.cs: A local variable named `top' cannot be declared in this scope because it would give a different meaning to `top', which is already used in a `parent or current' scope to denote something else
2 // Line: 19
3
4 using System.Collections;
5
6 class Symbol
7 {
8 }
9
10 class X
11 {
12                 Symbol top;
13         
14                 internal int Enter (Symbol key, object value)
15                 {
16                         if (key != null) {
17                                 top = key;                                      
18                         }
19                         Hashtable top = new Hashtable ();
20                         return top.Count;
21                 }
22                 
23                 public static void Main () {}
24 }