We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
[T, ...] =>> U[T, ...]
U
1 parent fa95cbd commit d53cf4bCopy full SHA for d53cf4b
compiler/src/dotty/tools/dotc/core/TypeApplications.scala
@@ -57,8 +57,7 @@ object TypeApplications {
57
58
def unapply(tp: Type)(using Context): Option[Type] = tp match
59
case tp @ HKTypeLambda(tparams, AppliedType(fn: Type, args))
60
- if fn.typeSymbol.isClass
61
- && tparams.hasSameLengthAs(args)
+ if tparams.hasSameLengthAs(args)
62
&& args.lazyZip(tparams).forall((arg, tparam) => arg == tparam.paramRef)
63
&& weakerBounds(tp, fn.typeParams) => Some(fn)
64
case _ => None
0 commit comments