相关代码 |
|
package gls.scope class NameResolvingTest extends GroovyTestCase { public void testVariableNameEqualsToAClassName() { Object String = "" assert String == "" assert String.class == java.lang.String } public void testVariableNameEqualsCurrentClassName() { Object NameResolvingTest = "" assert NameResolvingTest == "" assert NameResolvingTest.class == java.lang.String.class } }