summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-04-09 10:12:03 -0700
committerPaul Phillips <paulp@improving.org>2012-04-09 19:43:38 -0700
commitc456bebbcddae490a2ab2860855e936adb60539e (patch)
tree977cded8b50c1efa7e12bc2aee55d62fa91641d7 /src/compiler/scala/tools/nsc/typechecker/Implicits.scala
parent54496744806e9617d8ab745122080c48f60c64e7 (diff)
downloadscala-c456bebbcddae490a2ab2860855e936adb60539e.tar.gz
scala-c456bebbcddae490a2ab2860855e936adb60539e.tar.bz2
scala-c456bebbcddae490a2ab2860855e936adb60539e.zip
Less laborious type application.
And eliminating redundancy. Reduced gratuitous usage of typeConstructor on symbols which don't have type parameters.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Implicits.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Implicits.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
index 7d1198a4a2..75440a1136 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
@@ -1107,7 +1107,7 @@ trait Implicits {
/** Re-wraps a type in a manifest before calling inferImplicit on the result */
def findManifest(tp: Type, manifestClass: Symbol = if (full) FullManifestClass else PartialManifestClass) =
- inferImplicit(tree, appliedType(manifestClass.typeConstructor, List(tp)), true, false, context).tree
+ inferImplicit(tree, appliedType(manifestClass, tp), true, false, context).tree
def findSubManifest(tp: Type) = findManifest(tp, if (full) FullManifestClass else OptManifestClass)
def mot(tp0: Type, from: List[Symbol], to: List[Type]): SearchResult = {