Nice/testsuite/compiler/visibility/expressions private.testsuite,NONE,1.1

Daniel Bonniot <[email protected]> Sat, 12 Mar 2005 02:41:43 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/testsuite/compiler/visibility/expressions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5589/testsuite/compiler/visibility/expressions

Added Files:
	private.testsuite 
Log Message:
Implemented visibility for toplevel variables and values.


--- NEW FILE: private.testsuite ---
/// FAIL bug
  /// package a
  /// Toplevel
class A
{
  private String hidden = "secret";
}
  /// package b import a
  println("Got it: " + thief(new A()));
  /// Toplevel
String thief(A a) = /*///FAIL HERE*/ a.hidden;


/// FAIL
  /// package a
  /// Toplevel
private let String hidden = "secret";
  /// package b import a
  String s = /*///FAIL HERE*/ hidden;



-------------------------------------------------------
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