diff options
author | Martin Odersky <odersky@gmail.com> | 2009-08-24 16:20:46 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-08-24 16:20:46 +0000 |
commit | 42568ac7c91cfc95b1c99a8ad8665eb29f292d33 (patch) | |
tree | 4076853be790accc2dd1b7048b86210d9bb6772f /src | |
parent | c1df5090b9b2857b5a78e3da381baf6e2dac45e8 (diff) | |
download | scala-42568ac7c91cfc95b1c99a8ad8665eb29f292d33.tar.gz scala-42568ac7c91cfc95b1c99a8ad8665eb29f292d33.tar.bz2 scala-42568ac7c91cfc95b1c99a8ad8665eb29f292d33.zip |
checked in missing file.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 6 |
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 |