Nice/testsuite/compiler/expressions/arrays asCollections.testsuite,1.1,1.2
Daniel Bonniot <[email protected]> Mon, 04 Apr 2005 11:49:14 +0000
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/testsuite/compiler/expressions/arrays
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10389/testsuite/compiler/expressions/arrays
Modified Files:
asCollections.testsuite
Log Message:
Known bugs: wrong conversions from array to List.
Index: asCollections.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/expressions/arrays/asCollections.testsuite,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** asCollections.testsuite 9 Dec 2002 19:56:01 -0000 1.1
--- asCollections.testsuite 4 Apr 2005 11:49:11 -0000 1.2
***************
*** 20,21 ****
--- 20,36 ----
int size() = this.elements.size();
}
+
+
+ /// COMMENT the next two bugs should be fixable by using the
+ /// COMMENT instanciatedDomain in bossa.syntax call.nice even when the
+ /// COMMENT result type is not polymorhic, but the function call is.
+
+ /// PASS bug
+ int[][] l = [[0,1],[1,2]];
+ let bar = l.map(List<int> x => x[1]);
+
+ /// PASS bug
+ int[][] l = [[0,1],[1,2]];
+ use(l, List<int> list => {});
+ /// Toplevel
+ <T> void use(T[] l, T->void f) = f(l[0]);
-------------------------------------------------------
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