diff options
Diffstat (limited to 'test-nsc/files/pos')
-rwxr-xr-x | test-nsc/files/pos/expressions-current.scala | 5 | ||||
-rwxr-xr-x | test-nsc/files/pos/traits.scala | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/test-nsc/files/pos/expressions-current.scala b/test-nsc/files/pos/expressions-current.scala index b343dbf68b..f3def81931 100755 --- a/test-nsc/files/pos/expressions-current.scala +++ b/test-nsc/files/pos/expressions-current.scala @@ -39,9 +39,10 @@ abstract class Lang2 extends Lang { class Show2(result: Ref[String]): visitor extends Visitor2 { def caseNum(n: int) = result.elem = n.toString(); def casePlus(l: Exp, r: Exp) = - result.elem = + result.elem = ( "(" + { l.visit(this); result.elem } + - "+" + { r.visit(this); result.elem }+ ")"; + "+" + { r.visit(this); result.elem }+ ")" + ) } } diff --git a/test-nsc/files/pos/traits.scala b/test-nsc/files/pos/traits.scala index 5fdf4b342e..605395c5a6 100755 --- a/test-nsc/files/pos/traits.scala +++ b/test-nsc/files/pos/traits.scala @@ -19,10 +19,11 @@ object Test { } trait BorderedColoredShape extends Shape with Bordered with Colored { override def equals(other: Any) = other match { - case that: BorderedColoredShape => + case that: BorderedColoredShape => ( super.equals(that) && super[Bordered].equals(that) && super[Colored].equals(that) + ) case _ => false } } |