[Nice-commit] Nice/testsuite/compiler/typing dti.testsuite,1.3,1.4
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-03-06 17:44:55
|
Update of /cvsroot/nice/Nice/testsuite/compiler/typing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29869/testsuite/compiler/typing Modified Files: dti.testsuite Log Message: Check that nullness inference is not too optimistic with if when only the second branch guarantees non-nullness. Index: dti.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/dti.testsuite,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** dti.testsuite 6 Mar 2005 17:24:27 -0000 1.3 --- dti.testsuite 6 Mar 2005 17:44:46 -0000 1.4 *************** *** 30,33 **** --- 30,42 ---- s. /*/// FAIL HERE*/ substring(1); + /// FAIL + ?String s = null; + if(maybeTrue()) + s = null; + else + s = "abc"; + + s. /*/// FAIL HERE*/ substring(1); + /// PASS bug ?String s = maybeString(); |