Update of /cvsroot/nice/Nice/testsuite/compiler/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv20955/testsuite/compiler/functions
Modified Files:
anonymous.testsuite
Log Message:
Properly typecheck anonymous functions as default values of method parameters.
Index: anonymous.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/functions/anonymous.testsuite,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** anonymous.testsuite 25 Jul 2003 13:45:13 -0000 1.7
--- anonymous.testsuite 26 Jul 2003 12:04:13 -0000 1.8
***************
*** 75,79 ****
int->String f = int i => { if (false) throw new Error(); };
! /// FAIL bug
/// Toplevel
<T> void foo(T->int f = T x => x) {}
--- 75,79 ----
int->String f = int i => { if (false) throw new Error(); };
! /// FAIL
/// Toplevel
<T> void foo(T->int f = T x => x) {}
|