[Nice-commit] Nice/testsuite/compiler/functions anonymous.testsuite,1.4,1.5
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-02-26 17:09:58
|
Update of /cvsroot/nice/Nice/testsuite/compiler/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv1298/testsuite/compiler/functions
Modified Files:
anonymous.testsuite
Log Message:
Check that the different returns in an anonymous function form build a
well-formed type (fixes #693184).
Index: anonymous.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/functions/anonymous.testsuite,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** anonymous.testsuite 17 Feb 2003 14:15:08 -0000 1.4
--- anonymous.testsuite 26 Feb 2003 17:09:23 -0000 1.5
***************
*** 57,58 ****
--- 57,66 ----
/// package b import a
;
+
+ /// FAIL
+ () -> int f = () => {
+ if (true)
+ return 1;
+ else
+ /* /// FAIL HERE */ return "";
+ };
|