From 20a3e4ee457e61d3f695b794260b5a1e1e0156e9 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 15 Aug 2008 16:27:10 +0000 Subject: Buffer gets vararg +, += methods; small fixes. --- test/files/run/existentials.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/files/run/existentials.scala b/test/files/run/existentials.scala index fcb5c93213..b4be8d3f6a 100755 --- a/test/files/run/existentials.scala +++ b/test/files/run/existentials.scala @@ -104,3 +104,7 @@ object Test extends Application { trait FooBar[ A <: Option[_]] { def foo: A } trait SubFooBar[B <: Option[_]] extends FooBar[B] + var pc: List[Product with (Counter[T] forSome { type T })] = List() + def f() = pc + pc = f() +} -- cgit v1.2.3