Skip to content

Commit 1cab33b

Browse files
committed
Load DottyPredef only in non-bootstrapped mode
1 parent 3b46af1 commit 1cab33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ class Definitions {
555555
// will return "null" when called recursively, see #1856.
556556
def DottyPredefModule: Symbol = {
557557
if (myDottyPredefModule == null) {
558-
myDottyPredefModule = requiredModule("dotty.DottyPredef")
558+
myDottyPredefModule = getModuleIfDefined("dotty.DottyPredef")
559559
assert(myDottyPredefModule != null)
560560
}
561561
myDottyPredefModule

0 commit comments

Comments
 (0)