Skip to content

Commit 65a421e

Browse files
committed
bugfix: Fix issues after merging
1 parent 479469c commit 65a421e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ object CompilationUnit {
131131
unit1
132132
}
133133

134-
/** Create a compilation unit corresponding to an in-memory String.
134+
/** Create a compilation unit corresponding to an in-memory String.
135135
* Used for `compiletime.testing.typeChecks`.
136136
*/
137137
def apply(name: String, source: String)(using Context): CompilationUnit = {
138138
val src = SourceFile.virtual(name = name, content = source, maybeIncomplete = false)
139-
new CompilationUnit(src, null)
139+
new CompilationUnit(src)
140140
}
141141

142142
/** Create a compilation unit corresponding to `source`.

compiler/src/dotty/tools/dotc/core/Phases.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ object Phases {
210210
private var myPostTyperPhase: Phase = _
211211
private var mySbtExtractDependenciesPhase: Phase = _
212212
private var myPicklerPhase: Phase = _
213-
private var mySetRootTreePhase: Phase = uninitialized
213+
private var mySetRootTreePhase: Phase = _
214214
private var myInliningPhase: Phase = _
215215
private var myStagingPhase: Phase = _
216216
private var mySplicingPhase: Phase = _

0 commit comments

Comments
 (0)