Update of /cvsroot/nice/Nice/testsuite/compiler/expressions/arrays
In directory sc8-pr-cvs1:/tmp/cvs-serv1807/testsuite/compiler/expressions/arrays
Modified Files:
compilation.testsuite
Log Message:
Made Object a super-type of every monotype.
Index: compilation.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/expressions/arrays/compilation.testsuite,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** compilation.testsuite 19 Nov 2003 14:50:25 -0000 1.6
--- compilation.testsuite 3 Dec 2003 21:50:41 -0000 1.7
***************
*** 41,45 ****
/// PASS
// Check that Object[] is really compiled as an object array, not just Object
! foo([object("1")]);
/// Toplevel
void foo(Object[] oo)
--- 41,59 ----
/// PASS
// Check that Object[] is really compiled as an object array, not just Object
! foo([toObj("1")]);
! /// Toplevel
! <!T> Object toObj(T x) = x;
!
! void foo(Object[] oo)
! {
! java.lang.Integer i = cast
! (java.lang.Integer.class.getConstructor([String.class]).newInstance(oo));
! assert i.intValue() == 1;
! }
!
! /// PASS
! // Check that Object[] is really compiled as an object array, not just Object
! Object o = "1";
! foo([o]);
/// Toplevel
void foo(Object[] oo)
|