summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-07-04 20:26:55 +0000
committerPaul Phillips <paulp@improving.org>2010-07-04 20:26:55 +0000
commit302b1df81fcac0648defe7a0dd651f6eba063c58 (patch)
treec5cf3d2ba70e047e277ce6bbda25cb592278ce10
parent7a8a37e5f154da49cca1ea7e36ab94d16751ec66 (diff)
downloadscala-302b1df81fcac0648defe7a0dd651f6eba063c58.tar.gz
scala-302b1df81fcac0648defe7a0dd651f6eba063c58.tar.bz2
scala-302b1df81fcac0648defe7a0dd651f6eba063c58.zip
Tightened how the repl prints types so we don't...
Tightened how the repl prints types so we don't see OverloadedTypes slip through sometimes. Review by apocalisp.
-rw-r--r--src/compiler/scala/tools/nsc/Interpreter.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala
index 78eadb05d8..5d11973a74 100644
--- a/src/compiler/scala/tools/nsc/Interpreter.scala
+++ b/src/compiler/scala/tools/nsc/Interpreter.scala
@@ -946,7 +946,7 @@ class Interpreter(val settings: Settings, out: PrintWriter) {
lazy val typeOf: Map[Name, String] = {
def getTypes(names: List[Name], nameMap: Name => Name): Map[Name, String] = {
names.foldLeft(Map.empty[Name, String]) { (map, name) =>
- val tp1 = atNextPhase(resObjSym.info.member(name).tpe)
+ val tp1 = atNextPhase(resObjSym.info.nonPrivateDecl(name).tpe)
// the types are all =>T; remove the =>
val tp2 = tp1 match {
case PolyType(Nil, tp) => tp