From 4c1bf42414b7f7ed99653fe841b032eb11864f2a Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 12 Dec 2016 10:42:47 +0100 Subject: 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. --- compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala') diff --git a/compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala b/compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala index 0027defa7..eb4da5400 100644 --- a/compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala +++ b/compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala @@ -125,7 +125,7 @@ class DottyPrimitives(ctx: Context) { /** Initialize the primitive map */ private def init: immutable.Map[Symbol, Int] = { - implicit val ctx: Context = this.ctx + implicit val ctx = this.ctx import core.Symbols.defn val primitives = new mutable.HashMap[Symbol, Int]() -- cgit v1.2.3