From 8adbe6a58562d6dd5c893b88b395ac46c2425e42 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 9 Feb 2006 16:26:09 +0000 Subject: --- test/files/run/bridges.scala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/files/run/bridges.scala') diff --git a/test/files/run/bridges.scala b/test/files/run/bridges.scala index bf3781fde0..65ba2f13cc 100644 --- a/test/files/run/bridges.scala +++ b/test/files/run/bridges.scala @@ -39,21 +39,21 @@ import Help.bar; import Help.mix; import Help.sub; -abstract class Foo___ { type I<:AnyRef; def f: I ; f; } -abstract class Foo__f { type I<:AnyRef; def f: I = {foo; null}; f; } +abstract class Foo___ { type I>:AllRef<:AnyRef; def f: I ; f; } +abstract class Foo__f { type I>:AllRef<:AnyRef; def f: I = {foo; null}; f; } abstract class Foo_I_ { class I ; def f: I ; f; } abstract class Foo_If { class I ; def f: I = {foo; null}; f; } -abstract class FooX__[X] { type I<:AnyRef; def f: I ; f; } -abstract class FooX_f[X] { type I<:AnyRef; def f: I = {foo; null}; f; } +abstract class FooX__[X] { type I>:AllRef<:AnyRef; def f: I ; f; } +abstract class FooX_f[X] { type I>:AllRef<:AnyRef; def f: I = {foo; null}; f; } abstract class FooXI_[X] { class I ; def f: I ; f; } abstract class FooXIf[X] { class I ; def f: I = {foo; null}; f; } -trait Bar___ { type I<:AnyRef; def f: I ; f; } -trait Bar__f { type I<:AnyRef; def f: I = {bar; null}; f; } +trait Bar___ { type I>:AllRef<:AnyRef; def f: I ; f; } +trait Bar__f { type I>:AllRef<:AnyRef; def f: I = {bar; null}; f; } trait Bar_I_ { class I ; def f: I ; f; } trait Bar_If { class I ; def f: I = {bar; null}; f; } -trait BarY__[Y] { type I<:AnyRef; def f: I ; f; } -trait BarY_f[Y] { type I<:AnyRef; def f: I = {bar; null}; f; } +trait BarY__[Y] { type I>:AllRef<:AnyRef; def f: I ; f; } +trait BarY_f[Y] { type I>:AllRef<:AnyRef; def f: I = {bar; null}; f; } trait BarYI_[Y] { class I ; def f: I ; f; } trait BarYIf[Y] { class I ; def f: I = {bar; null}; f; } -- cgit v1.2.3