Skip to content

Commit

Permalink
fix assertions in tests, fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Oct 23, 2023
1 parent fff9705 commit 4ccba38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion compiler/test/dotty/tools/DottyTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ trait DottyTest extends ContextEscapeDetection {
fc.setProperty(ContextDoc, new ContextDocstrings)
}

protected def defaultCompiler: Compiler = Compiler()
protected def defaultCompiler: Compiler = new Compiler()

private def compilerWithChecker(phase: String)(assertion: (tpd.Tree, Context) => Unit) = new Compiler {

Expand Down
8 changes: 4 additions & 4 deletions compiler/test/dotty/tools/dotc/sbt/ProgressCallbackTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ object ProgressCallbackTest:
case class ProgressEvent(curr: Int, total: Int, currPhase: String, nextPhase: String)
case class PhaseTransition(curr: String, next: String)

def asSubphases(phase: Phase): IArray[String] =
val subPhases = Run.SubPhases(phase).all
if subPhases.isEmpty then IArray(phase.phaseName)
else subPhases
def asSubphases(phase: Phase): IndexedSeq[String] =
val subPhases = Run.SubPhases(phase)
val indices = 0 until phase.traversals
indices.map(subPhases.subPhase)

def runnablePhases()(using Context): IArray[Phase] =
IArray.from(ctx.base.allPhases.filter(_.isRunnable))
Expand Down
1 change: 0 additions & 1 deletion sbt-bridge/test/xsbt/CompileProgressSpecification.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class CompileProgressSpecification {
"parser",
"typer (indexing)", "typer (typechecking)", "typer (checking java)",
"sbt-deps",
"extractSemanticDB",
"posttyper",
"sbt-api",
"SetRootTree",
Expand Down

0 comments on commit 4ccba38

Please sign in to comment.