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

Daniel Bonniot <[email protected]>
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-serv28766/testsuite/compiler/visibility/expressions

Added Files:
	public.testsuite 
Log Message:
Check that packages cannot see unqualified public expression symbols from
packages they have not imported.


--- NEW FILE: public.testsuite ---
/// FAIL bug
  /// package a
  /// Toplevel
public void fooA() {}

  /// package b import a dontcompile
  /// Toplevel
public void fooB() {}

  /// package c import a dontcompile
  // We haven't imported b
  /*/// FAIL HERE */ fooB();

  /// package d import b,c
  {}

/// FAIL
  /// package a
  /// Toplevel
public void fooA() {}

  /// package b import a dontcompile
  /// Toplevel
public void fooB() {}

  /// package c import a dontcompile
  // We haven't imported b
  /*/// FAIL HERE */ fooB();

  /// package d import c,b
  {}



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.