aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/ast
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2017-04-04 12:04:19 +0200
committerGitHub <noreply@github.com>2017-04-04 12:04:19 +0200
commita71cb970b779692d2dd68cd9ba00d2be5e6759be (patch)
treeb3a1007bcdd0b5e325cf730d9d5610dc08ab386a /compiler/src/dotty/tools/dotc/ast
parentabd09ff1fcd4a43b67b1dc029f1d375d0e1b57b9 (diff)
parent4f937e1735574ffda679761a0a9a8bebbe9cb2ae (diff)
downloaddotty-a71cb970b779692d2dd68cd9ba00d2be5e6759be.tar.gz
dotty-a71cb970b779692d2dd68cd9ba00d2be5e6759be.tar.bz2
dotty-a71cb970b779692d2dd68cd9ba00d2be5e6759be.zip
Merge pull request #2162 from abeln/infix-op
Fix #1959: infix type operators in the REPL
Diffstat (limited to 'compiler/src/dotty/tools/dotc/ast')
-rw-r--r--compiler/src/dotty/tools/dotc/ast/untpd.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/src/dotty/tools/dotc/ast/untpd.scala b/compiler/src/dotty/tools/dotc/ast/untpd.scala
index 99c204ca8..9b55720b8 100644
--- a/compiler/src/dotty/tools/dotc/ast/untpd.scala
+++ b/compiler/src/dotty/tools/dotc/ast/untpd.scala
@@ -526,11 +526,11 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
case Function(args, body) =>
this(this(x, args), body)
case InfixOp(left, op, right) =>
- this(this(x, left), right)
+ this(this(this(x, left), op), right)
case PostfixOp(od, op) =>
- this(x, od)
+ this(this(x, od), op)
case PrefixOp(op, od) =>
- this(x, od)
+ this(this(x, op), od)
case Parens(t) =>
this(x, t)
case Tuple(trees) =>