Skip to content

Commit

Permalink
Update compiler/src/dotty/tools/dotc/config/Settings.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Eugene Flesselle <[email protected]>
  • Loading branch information
dwijnand and EugeneFlesselle authored Jul 15, 2024
1 parent a4299f4 commit c08e0e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/config/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ object Settings:
def PrefixSetting(category: SettingCategory, name0: String, descr: String, deprecation: Option[Deprecation] = None): Setting[List[String]] =
val name = prependName(name0)
val prefix = name.takeWhile(_ != '<')
publish(Setting(category, "-" + name, descr, Nil, prefix = Some(prefix), deprecation = deprecation))
publish(Setting(category, name, descr, Nil, prefix = Some(prefix), deprecation = deprecation))

def VersionSetting(category: SettingCategory, name: String, descr: String, default: ScalaVersion = NoScalaVersion, legacyArgs: Boolean = false, deprecation: Option[Deprecation] = None): Setting[ScalaVersion] =
publish(Setting(category, prependName(name), descr, default, legacyArgs = legacyArgs, deprecation = deprecation))
Expand Down

0 comments on commit c08e0e4

Please sign in to comment.