Nice/testsuite/compiler/functions anonymous.testsuite,1.10,1.11

Arjan Boeijink <[email protected]> Sun, 13 Mar 2005 15:27:43 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
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



-------------------------------------------------------
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