Update of /cvsroot/nice/Nice/testsuite/compiler/typing
In directory sc8-pr-cvs1:/tmp/cvs-serv14314/testsuite/compiler/typing
Modified Files:
object.testsuite
Log Message:
Allow inhomogenous literal arrays (with type Object[]).
Index: object.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/object.testsuite,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** object.testsuite 3 Dec 2003 21:50:40 -0000 1.1
--- object.testsuite 8 Dec 2003 19:42:37 -0000 1.2
***************
*** 58,61 ****
?Object o = null;
! /// PASS bug
! Object[] os = [ "DEF", 1, o ];
--- 58,69 ----
?Object o = null;
! /// PASS
! Object[] os = [ "DEF", 42 ];
! foo(os);
! /// Toplevel
! void foo(Object[] os) {}
!
! /// PASS
! use(["s"]);
! /// Toplevel
! void use(Object[]) {}
|