diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-02-12 16:22:36 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-02-12 16:22:36 +0100 |
commit | 10167c46191c1b02246635b01dcd3d1e0b75497a (patch) | |
tree | 344972b494277024b7990c285ef56a24e26e7c00 /src/dotty/tools/dotc/Run.scala | |
parent | 5027f018be2879d0db5a13037abe4ac706ffbf42 (diff) | |
download | dotty-10167c46191c1b02246635b01dcd3d1e0b75497a.tar.gz dotty-10167c46191c1b02246635b01dcd3d1e0b75497a.tar.bz2 dotty-10167c46191c1b02246635b01dcd3d1e0b75497a.zip |
Check period validity once per run.
Diffstat (limited to 'src/dotty/tools/dotc/Run.scala')
-rw-r--r-- | src/dotty/tools/dotc/Run.scala | 3 |
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 = { |