aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/transform/TreeChecker.scala
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/transform/TreeChecker.scala
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/transform/TreeChecker.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/transform/TreeChecker.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/TreeChecker.scala b/compiler/src/dotty/tools/dotc/transform/TreeChecker.scala
index aa4eefe43..63547032e 100644
--- a/compiler/src/dotty/tools/dotc/transform/TreeChecker.scala
+++ b/compiler/src/dotty/tools/dotc/transform/TreeChecker.scala
@@ -129,7 +129,7 @@ class TreeChecker extends Phase with SymTransformer {
try checker.typedExpr(ctx.compilationUnit.tpdTree)(checkingCtx)
catch {
case NonFatal(ex) => //TODO CHECK. Check that we are bootstrapped
- implicit val ctx: Context = checkingCtx
+ implicit val ctx = checkingCtx
println(i"*** error while checking ${ctx.compilationUnit} after phase ${checkingCtx.phase.prev} ***")
throw ex
}