[Nice-commit] Nice/testsuite/compiler/packages static.testsuite,NONE,1.1
Brought to you by:
bonniot
|
From: Artem Gr K. <ar...@us...> - 2005-03-16 07:48:17
|
Update of /cvsroot/nice/Nice/testsuite/compiler/packages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2337/testsuite/compiler/packages Added Files: static.testsuite Log Message: BUG 1163887 --- NEW FILE: static.testsuite --- /// COMMENT Static variables from different packages should not clash. /// PASS /// package a dontcompile /// Toplevel void fun( StringBuffer buf ) = buf.append( STATIC_STRING ); let String STATIC_STRING = "foo1"; let String[] STATIC_ARRAY = [ "foo1", "bar1" ]; /// package b dontcompile /// Toplevel void fun( StringBuffer buf ) = buf.append( STATIC_STRING ); let String STATIC_STRING = "foo2"; let String[] STATIC_ARRAY = [ "foo2", "bar2" ]; /// package c import a,b /// Toplevel void notUsed() {} |