Update of /cvsroot/nice/Nice/testsuite/compiler/classes
In directory sc8-pr-cvs1:/tmp/cvs-serv12903/F:/nice/testsuite/compiler/classes
Modified Files:
initializer.testsuite
Log Message:
Another bug case for initializers.
Index: initializer.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/initializer.testsuite,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** initializer.testsuite 11 Sep 2003 15:44:20 -0000 1.4
--- initializer.testsuite 29 Sep 2003 16:39:43 -0000 1.5
***************
*** 122,123 ****
--- 122,137 ----
assert new A().initialised;
+ /// PASS bug
+ /// package a
+ /// Toplevel
+ class A
+ {
+ boolean[] x = [false, false];
+
+ {
+ for(int i = 0; i<x.length; i++)
+ x[i] = true;
+ }
+ }
+ /// package b import a
+ assert new A().x[0];
|