[Nice-commit] Nice/testsuite/compiler/typing instanceof.testsuite,1.20,1.21
Brought to you by:
bonniot
From: Arjan B. <ar...@us...> - 2004-06-27 23:37:33
|
Update of /cvsroot/nice/Nice/testsuite/compiler/typing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1445/F:/nice/testsuite/compiler/typing Modified Files: instanceof.testsuite Log Message: Improved error message for typeExpressions. Index: instanceof.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/instanceof.testsuite,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** instanceof.testsuite 28 May 2004 21:29:20 -0000 1.20 --- instanceof.testsuite 27 Jun 2004 23:37:25 -0000 1.21 *************** *** 321,328 **** }); ! /// PASS bug <T,U | U <: T> U narrow(T obj) { ! if (obj instanceof U) return obj; else --- 321,329 ---- }); ! /// FAIL ! /// Toplevel <T,U | U <: T> U narrow(T obj) { ! if (obj instanceof /* /// FAIL HERE */U) return obj; else |