Skip to content

Commit f91e5d8

Browse files
Update with type to & in compiler (#18853)
2 parents 6a5c037 + 3a6af8c commit f91e5d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/ast/untpd.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
4242
/** mods object name impl */
4343
case class ModuleDef(name: TermName, impl: Template)(implicit @constructorOnly src: SourceFile)
4444
extends MemberDef {
45-
type ThisTree[+T <: Untyped] <: Trees.NameTree[T] with Trees.MemberDef[T] with ModuleDef
45+
type ThisTree[+T <: Untyped] <: Trees.NameTree[T] & Trees.MemberDef[T] & ModuleDef
4646
def withName(name: Name)(using Context): ModuleDef = cpy.ModuleDef(this)(name.toTermName, impl)
4747
}
4848

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import scala.PartialFunction.cond
1212

1313
trait CliCommand:
1414

15-
type ConcreteSettings <: CommonScalaSettings with Settings.SettingGroup
15+
type ConcreteSettings <: CommonScalaSettings & Settings.SettingGroup
1616

1717
def versionMsg: String
1818

0 commit comments

Comments
 (0)