[Nice-commit] Nice/testsuite/compiler/syntax tuples.testsuite,NONE,1.1
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-03-14 14:10:50
|
Update of /cvsroot/nice/Nice/testsuite/compiler/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv15699/testsuite/compiler/syntax
Added Files:
tuples.testsuite
Log Message:
Allow nested tuples on the left side of a tuple assignment.
--- NEW FILE: tuples.testsuite ---
/// PASS
(String name, (String a, String b)) = ("name", ("1","2"));
assert name == "name";
assert a == "1" && b == "2";
/// PASS
// Checks that we do not confuse the first element with a nested tuple.
((String, String) -> String s, int i) = ((String s1, String s2)=>s1, 0);
|