Nice/testsuite/compiler/packages static.testsuite,NONE,1.1

Artem Gr Kozarezov <[email protected]> Wed, 16 Mar 2005 07:48:10 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
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() {}



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click