Skip to content

Commit 1571c2b

Browse files
committed
Fix review comment in previous PR
Was not fixed by accident then, so we do it here now.
1 parent ae95860 commit 1571c2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/dotty/tools/dotc/core/TypeApplications.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ class TypeApplications(val self: Type) extends AnyVal {
244244
else tsym.infoOrCompleter match {
245245
case completer: TypeParamsCompleter =>
246246
val tparams = completer.completerTypeParams(tsym)
247-
if (tsym.isClass) tparams
248-
else defn.LambdaTrait(tparams.map(_.variance)).typeParams
247+
defn.LambdaTrait(tparams.map(_.variance)).typeParams
249248
case _ =>
250249
if (!tsym.isCompleting || tsym.isAliasType) tsym.info.typeParams
251250
else

0 commit comments

Comments
 (0)