Nice/testsuite/compiler/classes typeParameters.testsuite,1.22,1.23

Daniel Bonniot <[email protected]> Mon, 04 Apr 2005 22:17:13 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/testsuite/compiler/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20870/testsuite/compiler/classes

Modified Files:
	typeParameters.testsuite 
Log Message:
Fix bounded type variables used as class type parameters (reported by raboof).


Index: typeParameters.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/typeParameters.testsuite,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** typeParameters.testsuite	13 Mar 2005 15:27:40 -0000	1.22
--- typeParameters.testsuite	4 Apr 2005 22:17:10 -0000	1.23
***************
*** 373,374 ****
--- 373,404 ----
  class A<T> {}
  class B<T> extends A< /*/// FAIL HERE */ U> {}
+ 
+ 
+ /// PASS
+   Foo<A> a = new Foo();
+   /// Toplevel
+ abstract interface I {}
+ 
+ class A implements I {}
+ 
+ <T extends I> class Foo<T> {}
+ 
+ 
+ /// PASS
+   Foo<A> a = new Foo();
+   /// Toplevel
+ interface I {}
+ 
+ class A implements I {}
+ 
+ <T extends I> class Foo<T> {}
+ 
+ 
+ /// PASS
+   Foo<A> a = new Foo();
+   /// Toplevel
+ class I {}
+ 
+ class A extends I {}
+ 
+ <T extends I> class Foo<T> {}



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click