Nice/testsuite/compiler globalVariables.testsuite,1.17,1.18

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

Modified Files:
	globalVariables.testsuite 
Log Message:
Implemented visibility for toplevel variables and values.


Index: globalVariables.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/globalVariables.testsuite,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** globalVariables.testsuite	13 Oct 2004 18:28:48 -0000	1.17
--- globalVariables.testsuite	12 Mar 2005 02:41:44 -0000	1.18
***************
*** 61,71 ****
  
  /// PASS
!   /// package a 
    /// TOPLEVEL
!   var int x = 0;
    int getAX() = x;
    /// package b import a
    /* Modifying a global var from a different package. */
!   x = 1; 
    assert(getAX() == 1);
  
--- 61,71 ----
  
  /// PASS
!   /// package a
    /// TOPLEVEL
!   public var int x = 0;
    int getAX() = x;
    /// package b import a
    /* Modifying a global var from a different package. */
!   x = 1;
    assert(getAX() == 1);
  
***************
*** 93,106 ****
  
  /// PASS
!   /// package a 
    /// TOPLEVEL
!   let int x = 1;
    /// package b import a
    assert(x == 1);
  
  /// FAIL
!   /// package a 
    /// TOPLEVEL
!   let int x = 0;
    /// package b import a
    x = 1;
--- 93,106 ----
  
  /// PASS
!   /// package a
    /// TOPLEVEL
!   public let int x = 1;
    /// package b import a
    assert(x == 1);
  
  /// FAIL
!   /// package a
    /// TOPLEVEL
!   public let int x = 0;
    /// package b import a
    x = 1;



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