summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 2a5d77ee50..cbb9129b30 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -3845,6 +3845,12 @@ trait Typers { self: Analyzer =>
case Some(tree1) => transformed -= tree; tree1
case None => typed(tree, pt)
}
+
+ def findManifest(tp: Type, full: Boolean) =
+ inferImplicit(
+ EmptyTree,
+ appliedType((if (full) FullManifestClass else PartialManifestClass).typeConstructor, List(tp)),
+ true, false, context)
/*
def convertToTypeTree(tree: Tree): Tree = tree match {
case TypeTree() => tree