Skip to content

Commit fa03483

Browse files
committed
Custom root imports are not preamble
1 parent 6230b06 commit fa03483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/scala/tools/nsc/settings/ScalaSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ trait ScalaSettings extends AbsScalaSettings
202202
.withPostSetHook(bs => if (bs) imports.value = Nil)
203203
val nopredef = BooleanSetting ("-Yno-predef", "Compile without importing Predef.")
204204
.withPostSetHook(bs => if (bs && !noimports) imports.value = "java.lang" :: "scala" :: Nil)
205-
val imports = MultiStringSetting(name="-Yimports", arg="import", descr="Custom preamble imports, default is `java.lang,scala,scala.Predef`.", helpText=Some(
205+
val imports = MultiStringSetting(name="-Yimports", arg="import", descr="Custom root imports, default is `java.lang,scala,scala.Predef`.", helpText=Some(
206206
sm"""|Specify a list of packages and objects to import from as "root" imports.
207207
|Root imports form the root context in which all Scala source is evaluated.
208208
|The names supplied to `-Yimports` must be fully-qualified.

0 commit comments

Comments
 (0)