[Nice-commit] Nice/testsuite/compiler/syntax types.testsuite,1.4,1.5
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-03-06 12:39:15
|
Update of /cvsroot/nice/Nice/testsuite/compiler/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv22314/testsuite/compiler/syntax
Modified Files:
types.testsuite
Log Message:
Allow ?(T[]) syntax for optional arrays, as an alternative to T[?].
Index: types.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/syntax/types.testsuite,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** types.testsuite 7 Oct 2002 12:34:32 -0000 1.4
--- types.testsuite 6 Mar 2003 12:29:07 -0000 1.5
***************
*** 63,64 ****
--- 63,89 ----
/// package b import a
f((65536,1));
+
+ /// PASS
+ ?(String[]) s1;
+ s1 = null;
+ s1 = [ "A" ];
+
+ String[?] s1';
+ s1' = null;
+ s1' = [ "A" ];
+
+ (?String)[] s2;
+ s2 = [ null ];
+ s2 = [ "A" ];
+
+ ?String[] s2';
+ s2' = [ null ];
+ s2' = [ "A" ];
+
+ ?(?String[]) s3;
+ s3 = null;
+ s3 = [ null ];
+
+ ?String[?] s3';
+ s3' = null;
+ s3' = [ null ];
|