Skip to content

Commit

Permalink
Merge pull request #14570 from Xavientois/fix-context-base-init-warning
Browse files Browse the repository at this point in the history
Fix safe-init errors in ContextBase
  • Loading branch information
nicolasstucki committed Feb 26, 2022
2 parents 361546c + 20d9b48 commit 8922c88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/src/dotty/tools/dotc/core/Contexts.scala
Original file line number Diff line number Diff line change
Expand Up @@ -872,12 +872,12 @@ object Contexts {
/** The loader that loads the members of _root_ */
def rootLoader(root: TermSymbol)(using Context): SymbolLoader = platform.rootLoader(root)

// Set up some phases to get started */
usePhases(List(SomePhase))

/** The standard definitions */
val definitions: Definitions = new Definitions

// Set up some phases to get started */
usePhases(List(SomePhase))

/** Initializes the `ContextBase` with a starting context.
* This initializes the `platform` and the `definitions`.
*/
Expand Down

0 comments on commit 8922c88

Please sign in to comment.