diff options
author | Martin Odersky <odersky@gmail.com> | 2003-04-16 13:51:23 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-04-16 13:51:23 +0000 |
commit | 17a647a7408200cc9e32c056307c895d56cff976 (patch) | |
tree | 5780dad75e69af32c42f02ebe48e4b137040fc1a /sources/examples/expressions | |
parent | 4d51076c624e8b08c0053adfca5008063ec7e849 (diff) | |
download | scala-17a647a7408200cc9e32c056307c895d56cff976.tar.gz scala-17a647a7408200cc9e32c056307c895d56cff976.tar.bz2 scala-17a647a7408200cc9e32c056307c895d56cff976.zip |
*** empty log message ***
Diffstat (limited to 'sources/examples/expressions')
-rw-r--r-- | sources/examples/expressions/expressions-current.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/examples/expressions/expressions-current.scala b/sources/examples/expressions/expressions-current.scala index 8783fc9544..abfb3a6ad4 100644 --- a/sources/examples/expressions/expressions-current.scala +++ b/sources/examples/expressions/expressions-current.scala @@ -39,9 +39,9 @@ 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 = - "(" + { l.visit(this); result.elem } + - "+" + { r.visit(this); result.elem }+ ")"; + result.elem = + "(" + { l.visit(this); result.elem } + + "+" + { r.visit(this); result.elem }+ ")"; } } |