Nice/testsuite/compiler/syntax generics.testsuite,1.1,1.2
Daniel Bonniot <[email protected]> Sat, 09 Apr 2005 10:58:19 +0000
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/testsuite/compiler/syntax
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10391/testsuite/compiler/syntax
Modified Files:
generics.testsuite
Log Message:
Fix generics syntax with constructed monotypes.
Index: generics.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/syntax/generics.testsuite,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** generics.testsuite 8 Mar 2005 23:08:18 -0000 1.1
--- generics.testsuite 9 Apr 2005 10:58:15 -0000 1.2
***************
*** 8,13 ****
<T extends Collection> void foo(T<String> x) {}
! /// PASS bug
foo(["abc"]);
/// Toplevel
<T extends Collection<String>> void foo(T x) {}
--- 8,18 ----
<T extends Collection> void foo(T<String> x) {}
! /// PASS
foo(["abc"]);
/// Toplevel
<T extends Collection<String>> void foo(T x) {}
+
+ /// FAIL
+ /*/// FAIL HERE*/ foo([0]);
+ /// Toplevel
+ <T extends Collection<String>> void foo(T x) {}
-------------------------------------------------------
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