Skip to content

Commit 3259ee8

Browse files
committed
Drop -Yimports & -Yno-imports from affecting java root imports
Matching Scala 2 behaviour.
1 parent ee168c6 commit 3259ee8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,10 +1562,7 @@ class Definitions {
15621562
RootRef(() => requiredPackageRef(imp), isPredef = false)
15631563
}
15641564

1565-
@tu private lazy val JavaRootImportFns: List[RootRef] =
1566-
if !ctx.settings.Yimports.isDefault then YimportsImportFns
1567-
else if ctx.settings.YnoImports.value then Nil
1568-
else JavaImportFns
1565+
@tu private lazy val JavaRootImportFns: List[RootRef] = JavaImportFns
15691566

15701567
@tu private lazy val ScalaRootImportFns: List[RootRef] =
15711568
if !ctx.settings.Yimports.isDefault then YimportsImportFns

0 commit comments

Comments
 (0)