aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Run.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/Run.scala')
-rw-r--r--src/dotty/tools/dotc/Run.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala
index abee30aab..a182029e6 100644
--- a/src/dotty/tools/dotc/Run.scala
+++ b/src/dotty/tools/dotc/Run.scala
@@ -13,6 +13,9 @@ import scala.reflect.io.VirtualFile
class Run(comp: Compiler)(implicit ctx: Context) {
+ assert(comp.phases.last.last.id <= Periods.MaxPossiblePhaseId)
+ assert(ctx.runId <= Periods.MaxPossibleRunId)
+
var units: List[CompilationUnit] = _
def getSource(fileName: String): SourceFile = {