Skip to content

Commit d2b91c1

Browse files
committed
Fix rebase breakage
1 parent 8fc6137 commit d2b91c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ object Types {
153153
}
154154

155155
def isInfixType(implicit ctx: Context): Boolean = this match {
156-
case TypeApplications.AppliedType(tycon, args) =>
156+
case TypeApplications.AnyAppliedType(tycon, args) =>
157157
args.length == 2 &&
158158
!Character.isUnicodeIdentifierStart(tycon.typeSymbol.name.toString.head)
159159
// TODO: Once we use the 2.12 stdlib, also check the @showAsInfix annotation

repl/src/dotty/tools/repl/UserFacingPrinter.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import dotc.core.Constants.Constant
77
import dotc.core.Contexts.Context
88
import dotc.core.Denotations.{ Denotation, MultiDenotation, SingleDenotation }
99
import dotc.core.Flags._
10-
import dotc.core.TypeApplications.{ AppliedType, EtaExpansion }
10+
import dotc.core.TypeApplications.{ AnyAppliedType, EtaExpansion }
1111
import dotc.core.Names._
1212
import dotc.core.NameOps._
1313
import dotc.core.StdNames._
@@ -105,7 +105,7 @@ class UserFacingPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
105105
}
106106
case EtaExpansion(tycon) => toText(tycon)
107107
case PolyType(params, res) =>
108-
"[" ~ Fluid(params.map(tl => toText(tl.toArg)).intersperse(Str(", "))) ~ "]" ~ toText(res)
108+
"[" ~ Fluid(params.map(tl => toText(tl.paramRef)).intersperse(Str(", "))) ~ "]" ~ toText(res)
109109
case tp: MethodType => {
110110
def paramText(name: TermName, tp: Type) = toText(name) ~ ": " ~ toText(tp)
111111
changePrec(GlobalPrec) {
@@ -115,7 +115,7 @@ class UserFacingPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
115115
toText(tp.resultType)
116116
}
117117
}
118-
case AppliedType(tycon, args) => {
118+
case AnyAppliedType(tycon, args) => {
119119
def toTextInfixType(tycon: Type, args: List[Type]): Text = {
120120
// TODO: blatant copy from `RefinedPrinter`
121121
val l :: r :: Nil = args

0 commit comments

Comments
 (0)