aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing/RefinedPrinter.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-02-16 13:12:37 +0100
committerMartin Odersky <odersky@gmail.com>2014-02-21 18:42:50 +0100
commit77fc4d0831dc7a7ddaa74677e2659cdea4a2f52f (patch)
treea55363c03dca3a56767ed37b0cd36bb5bb009f13 /src/dotty/tools/dotc/printing/RefinedPrinter.scala
parentc3f4e845d6354931ac011073219b8a133446c381 (diff)
downloaddotty-77fc4d0831dc7a7ddaa74677e2659cdea4a2f52f.tar.gz
dotty-77fc4d0831dc7a7ddaa74677e2659cdea4a2f52f.tar.bz2
dotty-77fc4d0831dc7a7ddaa74677e2659cdea4a2f52f.zip
Disentangling SelectionProto and RefinedType
There were too many problems caused by it, and too little gained. So, now SelectionProto is no longer a Subtype of RefinedType.
Diffstat (limited to 'src/dotty/tools/dotc/printing/RefinedPrinter.scala')
-rw-r--r--src/dotty/tools/dotc/printing/RefinedPrinter.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/printing/RefinedPrinter.scala b/src/dotty/tools/dotc/printing/RefinedPrinter.scala
index 87f9fc29e..6fad6738e 100644
--- a/src/dotty/tools/dotc/printing/RefinedPrinter.scala
+++ b/src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -7,7 +7,7 @@ import Contexts.Context, Scopes.Scope, Denotations.Denotation, Annotations.Annot
import StdNames.nme
import ast.{Trees, untpd}
import typer.Namer
-import typer.Inferencing.ViewProto
+import typer.Inferencing.{SelectionProto, ViewProto}
import Trees._
import scala.annotation.switch
@@ -107,6 +107,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
}
return (toTextLocal(tycon) ~ "[" ~ Text(args map argText, ", ") ~ "]").close
}
+ case tp: SelectionProto =>
+ return toText(RefinedType(WildcardType, tp.name, tp.memberProto))
case tp: ViewProto =>
return toText(tp.argType) ~ " ?=>? " ~ toText(tp.resultType)
case tp: TypeRef =>