Skip to content

Commit

Permalink
Update with type to & in compiler (#18853)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki authored Nov 6, 2023
2 parents 6a5c037 + 3a6af8c commit f91e5d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/ast/untpd.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
/** mods object name impl */
case class ModuleDef(name: TermName, impl: Template)(implicit @constructorOnly src: SourceFile)
extends MemberDef {
type ThisTree[+T <: Untyped] <: Trees.NameTree[T] with Trees.MemberDef[T] with ModuleDef
type ThisTree[+T <: Untyped] <: Trees.NameTree[T] & Trees.MemberDef[T] & ModuleDef
def withName(name: Name)(using Context): ModuleDef = cpy.ModuleDef(this)(name.toTermName, impl)
}

Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/config/CliCommand.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import scala.PartialFunction.cond

trait CliCommand:

type ConcreteSettings <: CommonScalaSettings with Settings.SettingGroup
type ConcreteSettings <: CommonScalaSettings & Settings.SettingGroup

def versionMsg: String

Expand Down

0 comments on commit f91e5d8

Please sign in to comment.