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.
1 parent 37e1a01 commit 23e6bebCopy full SHA for 23e6beb
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -385,7 +385,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
385
if (cls2.typeParams.isEmpty) {
386
if (cls2 eq AnyKindClass) return true
387
if (tp1.isRef(NothingClass)) return true
388
- if (!tp1.hasSimpleKind) return false
+ if (tp1.isLambdaSub) return false
389
if (cls2 eq AnyClass) return true
390
// Note: We would like to replace this by `if (tp1.hasHigherKind)`
391
// but right now we cannot since some parts of the standard library rely on the
0 commit comments