diff options
Diffstat (limited to 'test/files')
-rwxr-xr-x | test/files/run/existentials.scala | 4 |
1 files changed, 4 insertions, 0 deletions
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() +} |