Skip to content

Commit 283f261

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 8fd7268 commit 283f261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
380380
if (cls2.typeParams.isEmpty) {
381381
if (cls2 eq AnyKindClass) return true
382382
if (tp1.isRef(NothingClass)) return true
383-
if (tp1.isLambdaSub) return false
383+
if (!tp1.hasSimpleKind) return false
384384
if (cls2 eq AnyClass) return true
385385
// Note: We would like to replace this by `if (tp1.hasHigherKind)`
386386
// but right now we cannot since some parts of the standard library rely on the

0 commit comments

Comments
 (0)