diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-03-16 19:34:39 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-03-16 19:34:39 +0100 |
commit | 96c6d38649d0f1605a31f542a53509d57af79709 (patch) | |
tree | a6c2e14e0418fc64f31fe79ed47ef5c28693433f /compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala | |
parent | 2325863c216e2bf4f7ad0f366bb80ef866ff6b79 (diff) | |
download | dotty-96c6d38649d0f1605a31f542a53509d57af79709.tar.gz dotty-96c6d38649d0f1605a31f542a53509d57af79709.tar.bz2 dotty-96c6d38649d0f1605a31f542a53509d57af79709.zip |
New flag -Ydebug-alias to never follow aliases when printing types
Diffstat (limited to 'compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala b/compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala index 3d952f425..8a33472b8 100644 --- a/compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala +++ b/compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala @@ -130,7 +130,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) { if (defn.isTupleClass(cls)) return toTextTuple(args) return (toTextLocal(tycon) ~ "[" ~ Text(args map argText, ", ") ~ "]").close case tp: TypeRef => - val hideType = tp.symbol is AliasPreferred + val hideType = !ctx.settings.debugAlias.value && (tp.symbol is AliasPreferred) if (hideType && !ctx.phase.erasedTypes && !tp.symbol.isCompleting) { tp.info match { case TypeAlias(alias) => return toText(alias) |