diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-31 19:14:45 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-31 19:14:45 +0100 |
commit | 50ab9f559ad36b916d24e733df3629994d239583 (patch) | |
tree | 848d05c2cd20a77d3819f7c132585e89a3bd14c1 | |
parent | 2623e52d088b9cdd79255097b658c064437df5e0 (diff) | |
download | dotty-50ab9f559ad36b916d24e733df3629994d239583.tar.gz dotty-50ab9f559ad36b916d24e733df3629994d239583.tar.bz2 dotty-50ab9f559ad36b916d24e733df3629994d239583.zip |
Reverting a change in `tpd` that would no longer be type-correct under dotty rules.
-rw-r--r-- | src/dotty/tools/dotc/ast/tpd.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/ast/tpd.scala b/src/dotty/tools/dotc/ast/tpd.scala index 2e6604bc2..70016c0a6 100644 --- a/src/dotty/tools/dotc/ast/tpd.scala +++ b/src/dotty/tools/dotc/ast/tpd.scala @@ -429,7 +429,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo { def tpes: List[Type] = xs map (_.tpe) } - class TreeMapper(val typeMap: TypeMap = IdentityTypeMap, val ownerMap: Symbol => Symbol = identity _)(implicit ctx: Context) extends TreeTransformer { + class TreeMapper(val typeMap: TypeMap = IdentityTypeMap, val ownerMap: Symbol => Symbol = identity)(implicit ctx: Context) extends TreeTransformer { override def transform(tree: tpd.Tree)(implicit ctx: Context): tpd.Tree = super.transform { tree.withType(typeMap(tree.tpe)) match { case bind: tpd.Bind => |