[Nice-commit] Nice/testsuite/compiler/expressions/arrays typing.testsuite,1.2,1.3
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2004-04-15 14:42:15
|
Update of /cvsroot/nice/Nice/testsuite/compiler/expressions/arrays In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31726/testsuite/compiler/expressions/arrays Modified Files: typing.testsuite Log Message: Simpler and more flexible typing for 'new T[x]': that expression now has type ?T, unless T is already known to be a complete, non-raw type. Index: typing.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/expressions/arrays/typing.testsuite,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** typing.testsuite 9 May 2003 11:57:37 -0000 1.2 --- typing.testsuite 15 Apr 2004 14:42:00 -0000 1.3 *************** *** 12,13 **** --- 12,18 ---- /// FAIL new int[""]; + + /// PASS + /// Toplevel + <T> ?T[] foo(!T x) = new T[1]; + <T> ?T[] foo2(int length) = new T[length]; |