Nice/testsuite/compiler/null functions.testsuite,1.1,1.2

Daniel Bonniot <[email protected]> Mon, 21 Mar 2005 16:55:37 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/testsuite/compiler/null
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22259/testsuite/compiler/null

Modified Files:
	functions.testsuite 
Log Message:
Improved location of redundant nullness markers errors.

Removed dubious testcases and added clear ones.


Index: functions.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/null/functions.testsuite,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** functions.testsuite	25 Jul 2002 15:23:37 -0000	1.1
--- functions.testsuite	21 Mar 2005 16:55:35 -0000	1.2
***************
*** 3,11 ****
  
  /// PASS
!   /// COMMENT: Maybe this should not be allowed.
!   ?(int)->int f = null;
  
! /// FAIL
!   /// COMMENT: Redondant nullness qualifier.
!   ?(int)?->int f;
  
--- 3,13 ----
  
  /// PASS
!   ?(int->int) f = null;
  
! /// PASS
!   ?int?->int f = null;
!   f = ?int x => 0;
  
+ /// FAIL
+   // Redundant nullness qualifier.
+   /*/// FAIL HERE */ ?(int?->int) f;



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click