Update of /cvsroot/nice/Nice/testsuite/compiler/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14271/testsuite/compiler/classes
Modified Files:
fields.testsuite
Log Message:
In bytecode, an array with unknown element types needs conversion when used
as an Object[].
Index: fields.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/fields.testsuite,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** fields.testsuite 26 Jan 2004 13:14:16 -0000 1.15
--- fields.testsuite 28 Jan 2004 13:10:11 -0000 1.16
***************
*** 127,128 ****
--- 127,146 ----
import javax.swing.*;
let int x = JFrame.EXIT_ON_CLOSE;
+
+ /// PASS
+ Polynomial<Complex<Object>> p = new Polynomial(e: []);
+ /// TOPLEVEL
+ abstract interface Ring<T> {
+ void zero();
+ }
+
+ class Complex<T> implements Ring<T> {
+ zero() {}
+ }
+
+ <Ring R, RR, T | R<RR> <: T <: R<RR>>
+ class Polynomial<T> implements Ring {
+ T[] e;
+
+ zero(){}
+ }
|