Skip to content

Commit d750ea5

Browse files
committed
fix ambiguous overload added in scalameta 4.7.0 for dotty
1 parent 142ef4d commit d750ea5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scalafix-core/src/main/scala/scalafix/internal/util/PrettyType.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class PrettyType private (
268268
toMods(info),
269269
Type.Name(info.displayName),
270270
tparams.smap(toTypeParam),
271-
Ctor.Primary(Nil, Name(""), Nil),
271+
Ctor.Primary(Nil, Name(""), Seq.empty[Term.ParamClause]),
272272
Template(
273273
Nil,
274274
inits,
@@ -317,7 +317,7 @@ class PrettyType private (
317317
}
318318
}
319319
.getOrElse {
320-
Ctor.Primary(Nil, Name(""), Nil)
320+
Ctor.Primary(Nil, Name(""), Seq.empty[Term.ParamClause])
321321
}
322322

323323
// FIXME: Workaround for https://github.com/scalameta/scalameta/issues/1492
@@ -393,7 +393,7 @@ class PrettyType private (
393393
toType(fixed),
394394
Name.Anonymous(),
395395
// Can't support term arguments
396-
Nil
396+
Seq.empty[Term.ArgClause]
397397
)
398398
}
399399

0 commit comments

Comments
 (0)