File tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -131,12 +131,12 @@ object CompilationUnit {
131
131
unit1
132
132
}
133
133
134
- /** Create a compilation unit corresponding to an in-memory String.
134
+ /** Create a compilation unit corresponding to an in-memory String.
135
135
* Used for `compiletime.testing.typeChecks`.
136
136
*/
137
137
def apply (name : String , source : String )(using Context ): CompilationUnit = {
138
138
val src = SourceFile .virtual(name = name, content = source, maybeIncomplete = false )
139
- new CompilationUnit (src, null )
139
+ new CompilationUnit (src)
140
140
}
141
141
142
142
/** Create a compilation unit corresponding to `source`.
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ object Phases {
210
210
private var myPostTyperPhase : Phase = _
211
211
private var mySbtExtractDependenciesPhase : Phase = _
212
212
private var myPicklerPhase : Phase = _
213
- private var mySetRootTreePhase : Phase = uninitialized
213
+ private var mySetRootTreePhase : Phase = _
214
214
private var myInliningPhase : Phase = _
215
215
private var myStagingPhase : Phase = _
216
216
private var mySplicingPhase : Phase = _
You can’t perform that action at this time.
0 commit comments