3 import gls
.CompilableTestSupport
5 class NameResolvingTest
extends CompilableTestSupport
{
6 public void testVariableNameEqualsToAClassName() {
9 assert String
.class == java
.lang
.String
12 public void testVariableNameEqualsCurrentClassName() {
13 Object NameResolvingTest
= ""
14 assert NameResolvingTest
== ""
15 assert NameResolvingTest
.class == java
.lang
.String
.class
18 public void testClassNoVariableInStaticMethod(){
21 Class.forName('java.lang.Integer')
23 assert foo() == Integer
27 public void testInAsDefAllowedInPackageNames() {
34 public void testAssignmentToNonLocalVariableWithSameNameAsClass() {
40 public void testClassUsageInSuper(){