Skip to content

Commit aae7b80

Browse files
committed
Fix testNonCyclic test
1 parent 23b3780 commit aae7b80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler/src/dotty/tools/dotc/CompilationUnit.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package dotty.tools
22
package dotc
33

4+
import dotty.tools.dotc.core.Types.Type // FIXME Why is this import needed in posTwice testNonCyclic?
45
import util.SourceFile
5-
import ast.{tpd, untpd}
6-
import dotty.tools.dotc.ast.tpd.{ Tree, TreeTraverser }
6+
import dotty.tools.dotc.ast.{ tpd, untpd }
77
import dotty.tools.dotc.core.Contexts.Context
88
import dotty.tools.dotc.core.SymDenotations.ClassDenotation
99
import dotty.tools.dotc.core.Symbols._
@@ -25,7 +25,7 @@ class CompilationUnit(val source: SourceFile) {
2525
object CompilationUnit {
2626

2727
/** Make a compilation unit for top class `clsd` with the contends of the `unpickled` */
28-
def mkCompilationUnit(clsd: ClassDenotation, unpickled: Tree, forceTrees: Boolean)(implicit ctx: Context): CompilationUnit = {
28+
def mkCompilationUnit(clsd: ClassDenotation, unpickled: tpd.Tree, forceTrees: Boolean)(implicit ctx: Context): CompilationUnit = {
2929
val file = Option(clsd.symbol.sourceFile).getOrElse(clsd.symbol.associatedFile)
3030
val unit1 = new CompilationUnit(new SourceFile(file, Seq()))
3131
unit1.tpdTree = unpickled
@@ -35,7 +35,7 @@ object CompilationUnit {
3535
}
3636

3737
/** Force the tree to be loaded */
38-
private object force extends TreeTraverser {
39-
def traverse(tree: Tree)(implicit ctx: Context): Unit = traverseChildren(tree)
38+
private object force extends tpd.TreeTraverser {
39+
def traverse(tree: tpd.Tree)(implicit ctx: Context): Unit = traverseChildren(tree)
4040
}
4141
}

0 commit comments

Comments
 (0)