Skip to content

Commit ef200be

Browse files
committed
Revert "Replace isLambdaSub with hasSimpleKind"
This reverts commit 283f261 because it introduces failures (which I don't get yet), as also shown in http://dotty-ci.epfl.ch/lampepfl/dotty/5085/4.
1 parent 283f261 commit ef200be

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.hasSimpleKind) return false
383+
if (tp1.isLambdaSub) 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)