diff options
author | Paul Phillips <paulp@improving.org> | 2010-07-04 20:26:55 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-07-04 20:26:55 +0000 |
commit | 302b1df81fcac0648defe7a0dd651f6eba063c58 (patch) | |
tree | c5cf3d2ba70e047e277ce6bbda25cb592278ce10 /src | |
parent | 7a8a37e5f154da49cca1ea7e36ab94d16751ec66 (diff) | |
download | scala-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/Interpreter.scala | 2 |
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 |