Skip to content

Commit 23e6beb

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 37e1a01 commit 23e6beb

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