summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
index 3d5032a7c8..0cd96cba83 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
@@ -637,14 +637,8 @@ trait Namers { self: Analyzer =>
// This infers Foo.type instead of "object Foo"
// See Infer#adjustTypeArgs for the polymorphic case.
- //
- // XXX - disabled for now due to impact on implicit search, visible
- // when trying to compile scalaz. Example:
- // scalaz/Each.scala:27: value toList is not a member of scalaz.Scalaz.IndSeq[A]
- // def each[A](e: IndSeq[A], f: A => Unit) = e.toList foreach f
- // if (tpe.typeSymbolDirect.isModuleClass) tpe1
- // else
- if (sym.isVariable || sym.isMethod && !sym.hasAccessorFlag)
+ if (tpe.typeSymbolDirect.isModuleClass) tpe1
+ else if (sym.isVariable || sym.isMethod && !sym.hasAccessorFlag)
if (tpe2 <:< pt) tpe2 else tpe1
else if (isHidden(tpe)) tpe2
// In an attempt to make pattern matches involving method local vals