aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Types.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-03-14 14:52:02 +0100
committerMartin Odersky <odersky@gmail.com>2016-04-01 11:20:17 +0200
commitb2d1e87059a097809285803c3ec123ec36d4a4aa (patch)
tree583b6a8c20978761f9fdb14844689e3dcf38ed08 /src/dotty/tools/dotc/core/Types.scala
parent32dcb8bb3a3eebf405e049f73ec4f153eb1f5b24 (diff)
downloaddotty-b2d1e87059a097809285803c3ec123ec36d4a4aa.tar.gz
dotty-b2d1e87059a097809285803c3ec123ec36d4a4aa.tar.bz2
dotty-b2d1e87059a097809285803c3ec123ec36d4a4aa.zip
Move Mode to core
Mode is used from a lot of low-level code, does not just reflect Typer info. So it makes more sense top to place it in the core package.
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r--src/dotty/tools/dotc/core/Types.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala
index 3801f1914..5dfe3a4f1 100644
--- a/src/dotty/tools/dotc/core/Types.scala
+++ b/src/dotty/tools/dotc/core/Types.scala
@@ -31,7 +31,6 @@ import config.Config
import config.Printers._
import annotation.tailrec
import Flags.FlagSet
-import typer.Mode
import language.implicitConversions
import scala.util.hashing.{ MurmurHash3 => hashing }
@@ -3446,7 +3445,7 @@ object Types {
object CyclicReference {
def apply(denot: SymDenotation)(implicit ctx: Context): CyclicReference = {
val ex = new CyclicReference(denot)
- if (!(ctx.mode is typer.Mode.CheckCyclic)) {
+ if (!(ctx.mode is Mode.CheckCyclic)) {
cyclicErrors.println(ex.getMessage)
for (elem <- ex.getStackTrace take 200)
cyclicErrors.println(elem.toString)