aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing/RefinedPrinter.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-05-16 13:58:25 +0200
committerMartin Odersky <odersky@gmail.com>2014-05-30 14:38:30 +0200
commit772d57cd0874d992b3d5bad12e8f30746b24f5d6 (patch)
tree3273b5e6e3f757d9b49a5e3d209455743ec04d25 /src/dotty/tools/dotc/printing/RefinedPrinter.scala
parent20034dd5500815ff04052cbc9a97deddacb3e892 (diff)
downloaddotty-772d57cd0874d992b3d5bad12e8f30746b24f5d6.tar.gz
dotty-772d57cd0874d992b3d5bad12e8f30746b24f5d6.tar.bz2
dotty-772d57cd0874d992b3d5bad12e8f30746b24f5d6.zip
typedTyped needs to maintain Mode.
The first part of a type ascription e: T can be a pattern or an expression. The mode has to be kept depending on what it was on the outside.
Diffstat (limited to 'src/dotty/tools/dotc/printing/RefinedPrinter.scala')
-rw-r--r--src/dotty/tools/dotc/printing/RefinedPrinter.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/printing/RefinedPrinter.scala b/src/dotty/tools/dotc/printing/RefinedPrinter.scala
index f1e6f5a52..eb6b151b4 100644
--- a/src/dotty/tools/dotc/printing/RefinedPrinter.scala
+++ b/src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -3,7 +3,7 @@ package printing
import core._
import Texts._, Types._, Flags._, Names._, Symbols._, NameOps._, Constants._
-import Contexts.Context, Scopes.Scope, Denotations._, Annotations.Annotation
+import Contexts.Context, Scopes.Scope, Denotations._, SymDenotations._, Annotations.Annotation
import StdNames.nme
import ast.{Trees, untpd}
import typer.Namer
@@ -481,6 +481,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
override def toText(denot: Denotation): Text = denot match {
case denot: MultiDenotation => denot.toString
+ case NoDenotation => "NoDenotation"
case _ =>
if (denot.symbol.exists) toText(denot.symbol)
else "some " ~ toText(denot.info)