Same names of enum and variable
<p>I've got following code (I know its not nice ;) ):</p>

<pre><code>public class Clazz1 {

    public int test = 10;

    public enum test {a, s, d, f  }

    void sth() {
        // ...  
        }
}
</code></pre>

<p>Is there any way to acces this enum? When I type 'test' it always means that int variable. What are rules connected with this situation - why even compiler allows to have enum and int with the same names?</p>
