aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t789.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t789.scala')
-rw-r--r--tests/untried/pos/t789.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/untried/pos/t789.scala b/tests/untried/pos/t789.scala
index 7a17f10b0..c453e229a 100644
--- a/tests/untried/pos/t789.scala
+++ b/tests/untried/pos/t789.scala
@@ -9,16 +9,16 @@ object main { // don't do this at home
type Both = SizeImpl with ColorImpl
def info(x:Impl) = x match {
- case x:Both => "size "+x.size+" color "+x.color // you wish
- case x:SizeImpl => "size "+x.size
- case x:ColorImpl => "color "+x.color
+ case x:Both => "size " + x.size +" color "+ x.color // you wish
+ case x:SizeImpl => "size " + x.size
+ case x:ColorImpl => "color " + x.color
case _ => "n.a."
}
def info2(x:Impl) = x match {
- case x:SizeImpl with ColorImpl => "size "+x.size+" color "+x.color // you wish
- case x:SizeImpl => "size "+x.size
- case x:ColorImpl => "color "+x.color
+ case x:SizeImpl with ColorImpl => "size " + x.size +" color "+ x.color // you wish
+ case x:SizeImpl => "size " + x.size
+ case x:ColorImpl => "color " + x.color
case _ => "n.a."
}