Update of /cvsroot/nice/Nice/testsuite/compiler/methods
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4765/testsuite/compiler/methods
Added Files:
generalization.testsuite
Log Message:
Take into account existing methods that specialize new ones (not yet for
existing Java methods).
--- NEW FILE: generalization.testsuite ---
/// COMMENT Introducing a method that is more general than an existing one.
/// COMMENT That is, the existing one overrides the new one.
/// PASS
/// package a
/// Toplevel
class Collection
{
void foo() {}
}
/// package b import a
/// Toplevel
abstract interface Fooable {}
<Fooable F> void foo(F this);
class a.Collection implements Fooable;
/// PASS
/// package a
/// Toplevel
class Collection
{
void foo() {}
}
/// package b import a
/// Toplevel
abstract interface Fooable
{
void foo();
}
class a.Collection implements Fooable;
/// PASS bug
/// Toplevel
abstract interface Addable<T> { void add(T item); }
interface java.util.Collection implements Addable;
|