[Nice-commit] Nice/testsuite/compiler/functions anonymous.testsuite,1.10,1.11
Brought to you by:
bonniot
|
From: Arjan B. <ar...@us...> - 2005-03-13 15:28:37
|
Update of /cvsroot/nice/Nice/testsuite/compiler/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25445/F:/nice/testsuite/compiler/functions Modified Files: anonymous.testsuite Log Message: Added the rest of the obvious failure locations. Index: anonymous.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/functions/anonymous.testsuite,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** anonymous.testsuite 15 Dec 2003 19:06:29 -0000 1.10 --- anonymous.testsuite 13 Mar 2005 15:27:41 -0000 1.11 *************** *** 2,6 **** // Incorrect call of an anonymous function stored in a variable boolean -> void f = boolean b => {}; ! f(); /// FAIL --- 2,6 ---- // Incorrect call of an anonymous function stored in a variable boolean -> void f = boolean b => {}; ! /*/// FAIL HERE */ f(); /// FAIL *************** *** 9,13 **** void g(boolean -> void f) { ! f(); } --- 9,13 ---- void g(boolean -> void f) { ! /*/// FAIL HERE */ f(); } *************** *** 16,23 **** /// FAIL ! int->int f = int x => { if (true) return 0; }; /// FAIL ! int->void f = int x => { if (true) return 0; }; /// PASS --- 16,23 ---- /// FAIL ! int->int f = /*/// FAIL HERE */ int x => { if (true) return 0; }; /// FAIL ! int->void f = /*/// FAIL HERE */ int x => { if (true) return 0; }; /// PASS *************** *** 73,81 **** /// FAIL ! int->String f = int i => { if (false) throw new Error(); }; /// FAIL /// Toplevel ! <T> void foo(T->int f = T x => x) {} /// PASS --- 73,81 ---- /// FAIL ! int->String /*/// FAIL HERE */ f = int i => { if (false) throw new Error(); }; /// FAIL /// Toplevel ! <T> void foo(T->int /*/// FAIL HERE */ f = T x => x) {} /// PASS |