We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 283f261 commit ef200beCopy full SHA for ef200be
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -380,7 +380,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
380
if (cls2.typeParams.isEmpty) {
381
if (cls2 eq AnyKindClass) return true
382
if (tp1.isRef(NothingClass)) return true
383
- if (!tp1.hasSimpleKind) return false
+ if (tp1.isLambdaSub) return false
384
if (cls2 eq AnyClass) return true
385
// Note: We would like to replace this by `if (tp1.hasHigherKind)`
386
// but right now we cannot since some parts of the standard library rely on the
0 commit comments