aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/ast
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-12-12 10:42:47 +0100
committerMartin Odersky <odersky@gmail.com>2016-12-12 10:46:48 +0100
commit4c1bf42414b7f7ed99653fe841b032eb11864f2a (patch)
tree3ff1602e1463e2345c168cfdf77dfcc7101f53e7 /compiler/src/dotty/tools/dotc/ast
parent1c03d45b1649bb8307c09ebfd2bcb3b9efe50dad (diff)
downloaddotty-4c1bf42414b7f7ed99653fe841b032eb11864f2a.tar.gz
dotty-4c1bf42414b7f7ed99653fe841b032eb11864f2a.tar.bz2
dotty-4c1bf42414b7f7ed99653fe841b032eb11864f2a.zip
Drop explicit types for local implicit vals
Drop explicit types for local implicit vals of type Context and Position. Exercises the functionality and shortens the code.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/ast')
-rw-r--r--compiler/src/dotty/tools/dotc/ast/Trees.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/src/dotty/tools/dotc/ast/Trees.scala b/compiler/src/dotty/tools/dotc/ast/Trees.scala
index c4b2b2122..20273eb85 100644
--- a/compiler/src/dotty/tools/dotc/ast/Trees.scala
+++ b/compiler/src/dotty/tools/dotc/ast/Trees.scala
@@ -1224,7 +1224,7 @@ object Trees {
case AppliedTypeTree(tpt, args) =>
this(this(x, tpt), args)
case PolyTypeTree(tparams, body) =>
- implicit val ctx: Context = localCtx
+ implicit val ctx = localCtx
this(this(x, tparams), body)
case ByNameTypeTree(result) =>
this(x, result)
@@ -1237,13 +1237,13 @@ object Trees {
case UnApply(fun, implicits, patterns) =>
this(this(this(x, fun), implicits), patterns)
case tree @ ValDef(name, tpt, _) =>
- implicit val ctx: Context = localCtx
+ implicit val ctx = localCtx
this(this(x, tpt), tree.rhs)
case tree @ DefDef(name, tparams, vparamss, tpt, _) =>
- implicit val ctx: Context = localCtx
+ implicit val ctx = localCtx
this(this((this(x, tparams) /: vparamss)(apply), tpt), tree.rhs)
case TypeDef(name, rhs) =>
- implicit val ctx: Context = localCtx
+ implicit val ctx = localCtx
this(x, rhs)
case tree @ Template(constr, parents, self, _) =>
this(this(this(this(x, constr), parents), self), tree.body)