Skip to content

Commit 37e1a01

Browse files
committed
Replace isLambdaSub with hasSimpleKind
This follows #4360. I'd love to add a test but #4360 has none, so I'm not 100% sure what it'd look like.
1 parent 8ac0c6f commit 37e1a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
385385
if (cls2.typeParams.isEmpty) {
386386
if (cls2 eq AnyKindClass) return true
387387
if (tp1.isRef(NothingClass)) return true
388-
if (tp1.isLambdaSub) return false
388+
if (!tp1.hasSimpleKind) return false
389389
if (cls2 eq AnyClass) return true
390390
// Note: We would like to replace this by `if (tp1.hasHigherKind)`
391391
// but right now we cannot since some parts of the standard library rely on the

0 commit comments

Comments
 (0)