[Nice-commit] Nice/testsuite/compiler/classes native.testsuite,1.10,1.11 typeParameters.testsuite,1.
Brought to you by:
bonniot
|
From: Arjan B. <ar...@us...> - 2005-03-13 15:28:37
|
Update of /cvsroot/nice/Nice/testsuite/compiler/classes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25445/F:/nice/testsuite/compiler/classes Modified Files: native.testsuite typeParameters.testsuite variance.testsuite Log Message: Added the rest of the obvious failure locations. Index: variance.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/variance.testsuite,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** variance.testsuite 30 Apr 2003 21:58:38 -0000 1.2 --- variance.testsuite 13 Mar 2005 15:27:40 -0000 1.3 *************** *** 1,3 **** ! /// FAIL /// Toplevel interface X{} --- 1,6 ---- ! /// FAIL bug ! B<X> b1 = new B(param: new A()); ! B<Y> b2 = b1; ! b2.param.foo(); /// Toplevel interface X{} *************** *** 9,15 **** T param; } - public void main(String[] args){ - B<X> b1 = new B(param: new A()); - B<Y> b2 = b1; - b2.param.foo(); - } --- 12,13 ---- Index: typeParameters.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/typeParameters.testsuite,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** typeParameters.testsuite 1 Mar 2005 18:56:19 -0000 1.21 --- typeParameters.testsuite 13 Mar 2005 15:27:40 -0000 1.22 *************** *** 28,32 **** /// FAIL ! Coord<Point> dummy = new Coord(p: ""); /// Toplevel class Point { int x; } --- 28,32 ---- /// FAIL ! Coord<Point> dummy = /*/// FAIL HERE */ new Coord(p: ""); /// Toplevel class Point { int x; } *************** *** 38,42 **** /// FAIL ! Coord<String> c = new Coord(); /// Toplevel class Point { int x; } --- 38,42 ---- /// FAIL ! Coord<String> /*/// FAIL HERE */ c = new Coord(); /// Toplevel class Point { int x; } *************** *** 46,50 **** /// FAIL /// COMMENT class constraints must be "inherited" by subclasses. ! Coord<String> c = new Coord2(); /// Toplevel class Point { int x; } --- 46,50 ---- /// FAIL /// COMMENT class constraints must be "inherited" by subclasses. ! Coord<String> /*/// FAIL HERE */ c = new Coord2(); /// Toplevel class Point { int x; } *************** *** 156,160 **** } /// package b import a ! Elem<List<Sting>> dummy = new Elem(data: ""); /// PASS --- 156,160 ---- } /// package b import a ! Elem<List<String>> dummy = /*/// FAIL HERE */ new Elem(data: ""); /// PASS *************** *** 306,310 **** // bug #992007 /// Toplevel ! <A,B | B <: A> class Foo<B,X> { A a; --- 306,310 ---- // bug #992007 /// Toplevel ! <A,B | B <: A> class Foo /*/// FAIL HERE */ <B,X> { A a; *************** *** 328,332 **** /// FAIL A<String> a = new A(x: null); ! String s = a.x; /// Toplevel --- 328,332 ---- /// FAIL A<String> a = new A(x: null); ! String /*/// FAIL HERE */ s = a.x; /// Toplevel *************** *** 349,353 **** /// FAIL ! A<String> a = new A(x: null); /// Toplevel --- 349,353 ---- /// FAIL ! A<String> a = /*/// FAIL HERE */ new A(x: null); /// Toplevel *************** *** 372,374 **** /// Toplevel class A<T> {} ! class B<T> extends A<U> {} --- 372,374 ---- /// Toplevel class A<T> {} ! class B<T> extends A< /*/// FAIL HERE */ U> {} Index: native.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/native.testsuite,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** native.testsuite 1 Mar 2005 18:56:19 -0000 1.10 --- native.testsuite 13 Mar 2005 15:27:40 -0000 1.11 *************** *** 14,18 **** /// Toplevel // java.util.Map is already retyped, with two type parameters ! interface MyMutableArray<Element> = native java.util.Map; /// COMMENT Retype two java classes, when one refers to the other. --- 14,18 ---- /// Toplevel // java.util.Map is already retyped, with two type parameters ! interface /*/// FAIL HERE */ MyMutableArray<Element> = native java.util.Map; /// COMMENT Retype two java classes, when one refers to the other. *************** *** 32,36 **** /// FAIL /// Toplevel ! class Int = native int; /// PASS --- 32,36 ---- /// FAIL /// Toplevel ! class /*/// FAIL HERE */ Int = native int; /// PASS |