diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-14 23:39:47 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-15 09:32:27 +0100 |
commit | 2608db67db46bcbcd5c235b38801a8d863def637 (patch) | |
tree | 0a94e550412677ae774a8c3d7f81ab65b9a8c710 /src/compiler | |
parent | 3bfacda9773901df8f05f0c3d1234fb083b18cc7 (diff) | |
download | scala-2608db67db46bcbcd5c235b38801a8d863def637.tar.gz scala-2608db67db46bcbcd5c235b38801a8d863def637.tar.bz2 scala-2608db67db46bcbcd5c235b38801a8d863def637.zip |
exposes additional TreeGen methods
Agains, this is something that's needed for async.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/TreeGen.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeGen.scala b/src/compiler/scala/tools/nsc/ast/TreeGen.scala index a87a04472a..0575b9703e 100644 --- a/src/compiler/scala/tools/nsc/ast/TreeGen.scala +++ b/src/compiler/scala/tools/nsc/ast/TreeGen.scala @@ -142,7 +142,7 @@ abstract class TreeGen extends scala.reflect.internal.TreeGen with TreeDSL { * x.asInstanceOf[`pt`]() if after uncurry but before erasure * x.$asInstanceOf[`pt`]() if at or after erasure */ - def mkCast(tree: Tree, pt: Type): Tree = { + override def mkCast(tree: Tree, pt: Type): Tree = { debuglog("casting " + tree + ":" + tree.tpe + " to " + pt + " at phase: " + phase) assert(!tree.tpe.isInstanceOf[MethodType], tree) assert(pt eq pt.normalize, tree +" : "+ debugString(pt) +" ~>"+ debugString(pt.normalize)) |