[Nice-commit] Nice/testsuite/compiler/methods ambiguity.testsuite,1.3,1.4 overriding.testsuite,1.7,1
Brought to you by:
bonniot
From: Arjan B. <ar...@us...> - 2004-09-15 12:59:10
|
Update of /cvsroot/nice/Nice/testsuite/compiler/methods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29861/F:/nice/testsuite/compiler/methods Modified Files: ambiguity.testsuite overriding.testsuite Log Message: Fixed bug in creating patterns for method overrides. Index: ambiguity.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/ambiguity.testsuite,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ambiguity.testsuite 15 Sep 2004 00:47:31 -0000 1.3 --- ambiguity.testsuite 15 Sep 2004 12:58:57 -0000 1.4 *************** *** 18,22 **** foo(null) = true; ! /// PASS bug /// Toplevel void foo(int x, ?int y) {} --- 18,22 ---- foo(null) = true; ! /// PASS /// Toplevel void foo(int x, ?int y) {} Index: overriding.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/overriding.testsuite,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** overriding.testsuite 17 Jun 2004 10:41:13 -0000 1.7 --- overriding.testsuite 15 Sep 2004 12:58:57 -0000 1.8 *************** *** 252,253 **** --- 252,262 ---- // This is NOT an override override void foo(A<String> x) {} + + /// PASS + /// package a + /// Toplevel + boolean foo(?int x) = false; + override boolean foo(int x) = true; + /// package b import a + assert ! foo(null); + assert foo(5); |