diff options
author | Allan Renucci <allan.renucci@gmail.com> | 2017-04-03 21:24:28 +0200 |
---|---|---|
committer | Allan Renucci <allan.renucci@gmail.com> | 2017-04-03 21:24:28 +0200 |
commit | 4aba4f798d2027a94b07631fd0589abe60eb644e (patch) | |
tree | 4d0ad09d9cb2e2b9cba6eb3a2a97ab8638a0597a | |
parent | 8377c0da86f7e9959e40e4b863a4831df9947e67 (diff) | |
download | dotty-4aba4f798d2027a94b07631fd0589abe60eb644e.tar.gz dotty-4aba4f798d2027a94b07631fd0589abe60eb644e.tar.bz2 dotty-4aba4f798d2027a94b07631fd0589abe60eb644e.zip |
Use `mapConserve` in `UntypedTreeMap`
-rw-r--r-- | compiler/src/dotty/tools/dotc/ast/untpd.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/ast/untpd.scala b/compiler/src/dotty/tools/dotc/ast/untpd.scala index 8ca91590f..682d1680d 100644 --- a/compiler/src/dotty/tools/dotc/ast/untpd.scala +++ b/compiler/src/dotty/tools/dotc/ast/untpd.scala @@ -477,7 +477,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo { case SymbolLit(str) => cpy.SymbolLit(tree)(str) case InterpolatedString(id, segments) => - cpy.InterpolatedString(tree)(id, segments.map(transform(_))) + cpy.InterpolatedString(tree)(id, segments.mapConserve(transform)) case Function(args, body) => cpy.Function(tree)(transform(args), transform(body)) case InfixOp(left, op, right) => |