Nice/testsuite/compiler/syntax generics.testsuite,NONE,1.1
Arjan Boeijink <[email protected]>
| 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-serv30132/F:/nice/testsuite/compiler/syntax
Added Files:
generics.testsuite
Log Message:
New generics syntax tests.
--- NEW FILE: generics.testsuite ---
/// PASS
/// Toplevel
<T, U | T extends U> U foo(T x) = x;
/// PASS
foo(["abc"]);
/// Toplevel
<T extends Collection> void foo(T<String> x) {}
/// PASS bug
foo(["abc"]);
/// 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