aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-31 14:17:16 +0200
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:12 +0200
commita3f6ca5a5cd96e17d2f9a9c5187f45ff02b5dd61 (patch)
tree5c6180be4cb80978555ebe99ac0f00837e77e70f /compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
parente3e5e79e24503a2e6be7f708d81c27068664b893 (diff)
downloaddotty-a3f6ca5a5cd96e17d2f9a9c5187f45ff02b5dd61.tar.gz
dotty-a3f6ca5a5cd96e17d2f9a9c5187f45ff02b5dd61.tar.bz2
dotty-a3f6ca5a5cd96e17d2f9a9c5187f45ff02b5dd61.zip
Make module var names semantic
Diffstat (limited to 'compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala b/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
index ec9257acf..375edc3cb 100644
--- a/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
+++ b/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -131,8 +131,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
toTextRHS(tp)
case tp: TermRef
if !tp.denotationIsCurrent && !homogenizedView || // always print underlying when testing picklers
- tp.symbol.is(Module) ||
- tp.symbol.name.isImportName =>
+ tp.symbol.is(Module) || tp.symbol.name == nme.IMPORT =>
toTextRef(tp) ~ ".type"
case tp: TermRef if tp.denot.isOverloaded =>
"<overloaded " ~ toTextRef(tp) ~ ">"