aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing/RefinedPrinter.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-09-05 14:44:08 +0200
committerMartin Odersky <odersky@gmail.com>2016-10-02 16:11:21 +0200
commitebcc2bdb8f5bacdff073868817357f23c5ce8464 (patch)
tree966ed72f5d31780ff6a6314481e78097c6943866 /src/dotty/tools/dotc/printing/RefinedPrinter.scala
parent33545570039fa37be3327f0ba8c27d16b0d7abf6 (diff)
downloaddotty-ebcc2bdb8f5bacdff073868817357f23c5ce8464.tar.gz
dotty-ebcc2bdb8f5bacdff073868817357f23c5ce8464.tar.bz2
dotty-ebcc2bdb8f5bacdff073868817357f23c5ce8464.zip
Fix problem with homogenize trees
Diffstat (limited to 'src/dotty/tools/dotc/printing/RefinedPrinter.scala')
-rw-r--r--src/dotty/tools/dotc/printing/RefinedPrinter.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/printing/RefinedPrinter.scala b/src/dotty/tools/dotc/printing/RefinedPrinter.scala
index fd79b8c50..f4a7a4dc5 100644
--- a/src/dotty/tools/dotc/printing/RefinedPrinter.scala
+++ b/src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -37,7 +37,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
}
def homogenize(tree: Tree[_])(implicit ctx: Context) = tree match {
- case tree: tpd.Inlined => Inliner.dropInlined(tree)
+ case tree: tpd.Inlined if homogenizedView => Inliner.dropInlined(tree)
case _ => tree
}