[Nice-commit] Nice/testsuite/compiler/overloading specificity.testsuite,1.5,1.6
Brought to you by:
bonniot
From: Arjan B. <ar...@us...> - 2004-07-22 12:40:53
|
Update of /cvsroot/nice/Nice/testsuite/compiler/overloading In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2464/F:/nice/testsuite/compiler/overloading Modified Files: specificity.testsuite Log Message: Testcase for bug in resolving methods with null patterns. Index: specificity.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/overloading/specificity.testsuite,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** specificity.testsuite 28 Feb 2004 14:23:41 -0000 1.5 --- specificity.testsuite 22 Jul 2004 12:40:42 -0000 1.6 *************** *** 118,119 **** --- 118,128 ---- void foo(A x) {} void foo(B x) {} + + /// PASS bug + assert foo(null) == null; + let String s = foo("abc"); + ///Toplevel + ?String foo(?String); + override String foo(String); + foo(null) = null; + foo(String s) = s; |