Skip to content

Commit 25fc269

Browse files
committed
Remove ScalaSettings type:
1 parent 6b75e61 commit 25fc269

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

compiler/src/dotty/tools/dotc/config/CompilerCommand.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Settings.*
55
import core.Contexts.*
66

77
abstract class CompilerCommand extends CliCommand:
8-
type ConcreteSettings = ScalaSettings
8+
type ConcreteSettings = ScalaSettings.type
99

1010
final def helpMsg(using settings: ConcreteSettings)(using SettingsState, Context): String =
1111
settings.allSettings.find(isHelping) match

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ object ScalaSettingCategories:
2323
val AdvancedSetting = "X"
2424
val VerboseSetting = "V"
2525

26-
type ScalaSettings = ScalaSettings.type
27-
2826
object ScalaSettings extends SettingGroup, AllScalaSettings:
2927
val settingsByCategory: Map[String, List[Setting[_]]] =
3028
allSettings.groupBy(_.category)

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ object Contexts {
513513
s"""Context(
514514
|${outersIterator.map(ctx => cinfo(using ctx)).mkString("\n\n")})""".stripMargin
515515

516-
def settings: ScalaSettings = base.settings
516+
def settings: ScalaSettings.type = base.settings
517517
def definitions: Definitions = base.definitions
518518
def platform: Platform = base.platform
519519
def pendingUnderlying: util.HashSet[Type] = base.pendingUnderlying
@@ -861,7 +861,7 @@ object Contexts {
861861
with Phases.PhasesBase
862862
with Plugins {
863863

864-
val settings: ScalaSettings = ScalaSettings
864+
val settings: ScalaSettings.type = ScalaSettings
865865

866866
/** The initial context */
867867
val initialCtx: Context = FreshContext.initial(this: @unchecked, settings)

0 commit comments

Comments
 (0)