File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1104,13 +1104,15 @@ class Definitions {
1104
1104
def init ()(implicit ctx : Context ) = {
1105
1105
this .ctx = ctx
1106
1106
if (! _isInitialized) {
1107
- // force initialization of every symbol that is synthesized or hijacked by the compiler
1108
- val forced = syntheticCoreClasses ++ syntheticCoreMethods ++ ScalaValueClasses ()
1109
-
1110
1107
// Enter all symbols from the scalaShadowing package in the scala package
1111
1108
for (m <- ScalaShadowingPackageClass .info.decls)
1112
1109
ScalaPackageClass .enter(m)
1113
1110
1111
+ // force initialization of every symbol that is synthesized or hijacked by the compiler
1112
+ // Placed here so that an abort with a MissingCoreLibraryException because scalaShadowing
1113
+ // is not found comes before any additional errors are reported.
1114
+ val forced = syntheticCoreClasses ++ syntheticCoreMethods ++ ScalaValueClasses ()
1115
+
1114
1116
_isInitialized = true
1115
1117
}
1116
1118
}
You can’t perform that action at this time.
0 commit comments