[Nice-commit] Nice/testsuite/compiler/expressions/arrays asCollections.testsuite,1.1,1.2
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-04-04 11:49:22
|
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]); |