[Nice-commit] Nice/testsuite/compiler/typing dti.testsuite,1.4,1.5
                
                Brought to you by:
                
                    bonniot
                    
                
            
            
        
        
        
    | 
     
      
      
      From: Artem Gr K. <ar...@us...> - 2005-03-07 08:17:02
      
     
   | 
Update of /cvsroot/nice/Nice/testsuite/compiler/typing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20664/testsuite/compiler/typing Modified Files: dti.testsuite Log Message: Nullness analisys on assignments is partially implemented (RFE 681385). Index: dti.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/dti.testsuite,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** dti.testsuite 6 Mar 2005 17:44:46 -0000 1.4 --- dti.testsuite 7 Mar 2005 08:16:52 -0000 1.5 *************** *** 13,16 **** --- 13,25 ---- /// PASS bug + // Nullness analysis on assignments. RFE# 681385 + func( null ).append( "123" ); + /// Toplevel + StringBuffer func( ?StringBuffer foo ) { + if( foo == null ) foo = new StringBuffer( 22 ); + return foo.append( "bar" ); + } + + /// PASS bug ?String s = null; if(maybeTrue()) *************** *** 47,51 **** foo(); ! /// PASS bug ?String s = maybeString(); ?String t = null; --- 56,60 ---- foo(); ! /// PASS ?String s = maybeString(); ?String t = null; *************** *** 135,137 **** func(); } - \ No newline at end of file --- 144,145 ----  |