Update of /cvsroot/nice/Nice/testsuite/compiler/expressions/arrays
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2164/F:/nice/testsuite/compiler/expressions/arrays
Modified Files:
compilation.testsuite
Log Message:
Added 2 testcases for coercion of arrays in nested arrays/tuples.
Index: compilation.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/expressions/arrays/compilation.testsuite,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** compilation.testsuite 9 Feb 2004 12:50:51 -0000 1.8
--- compilation.testsuite 10 Feb 2004 15:05:18 -0000 1.9
***************
*** 93,94 ****
--- 93,109 ----
(List<int>, String) x = ([1,2,3], "abc");
(List<int> arr, String str) = x;
+
+ /// PASS bug
+ (int[], int[]) t1 = ([1, 2], [3, 4]);
+ (List<int>, List<int>) t2 = t1;
+ (List<int> la, List<int> lb) = t2;
+ assert la[0] == 1;
+ assert la[1] == 2;
+
+ /// PASS bug
+ ((int[], String) , String) t1 = (([1, 2], "abc"), "xyz");
+ ((List<int>, String), String) t2 = t1;
+ ((List<int>, String) t3, String s1) = t2;
+ (List<int> la, String s2) = t3;
+ assert la[0] == 1;
+ assert la[1] == 2;
|