File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
compiler/src/dotty/tools/backend/jvm Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class GenBCode extends Phase { self =>
109109 result
110110 finally
111111 // frontendAccess and postProcessor are created lazilly, clean them up only if they were initialized
112- if _frontendAccess ne null then
112+ if ! ( _frontendAccess eq null ) then
113113 frontendAccess.compilerSettings.outputDirectory match {
114114 case jar : JarArchive =>
115115 if (ctx.run.nn.suspendedUnits.nonEmpty)
@@ -120,7 +120,7 @@ class GenBCode extends Phase { self =>
120120 jar.close()
121121 case _ => ()
122122 }
123- if _postProcessor ne null then
123+ if ! ( _postProcessor eq null ) then
124124 postProcessor.classfileWriter.close()
125125 generatedClassHandler.close()
126126 }
Original file line number Diff line number Diff line change @@ -1114,7 +1114,8 @@ object Build {
11141114 (Compile / scalacOptions) ++= Seq (
11151115 // Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
11161116 " -sourcepath" , (Compile / sourceDirectories).value.map(_.getAbsolutePath).distinct.mkString(File .pathSeparator),
1117- " -Yexplicit-nulls" ,
1117+ // "-Yexplicit-nulls", TODO: Enable it back
1118+ " -Ycompile-scala2-library"
11181119 ),
11191120 (Compile / doc / scalacOptions) ++= ScaladocConfigs .DefaultGenerationSettings .value.settings,
11201121 (Compile / packageSrc / mappings) ++= {
You can’t perform that action at this time.
0 commit comments