[Nice-commit] Nice/testsuite/compiler/methods overriding.testsuite,1.11,1.12
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-02-12 17:48:48
|
Update of /cvsroot/nice/Nice/testsuite/compiler/methods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29630/testsuite/compiler/methods Modified Files: overriding.testsuite Log Message: Make sure overrides can leave arguments with possibly-null types unspecified. Index: overriding.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/overriding.testsuite,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** overriding.testsuite 20 Dec 2004 22:18:02 -0000 1.11 --- overriding.testsuite 12 Feb 2005 17:48:39 -0000 1.12 *************** *** 266,267 **** --- 266,293 ---- void foo(?A x) {} override void foo(?B x) {} + + /// PASS + /// Toplevel + abstract class A + { + void foo(?String s); + } + + class B extends A + { + override void foo(?String s) {} + } + + /// PASS + /// package a + /// Toplevel + abstract class A + { + void foo(?String s); + } + /// package b import a + /// Toplevel + class B extends A + { + override void foo(?String s) {} + } |