File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
591591 val base = nonExprBaseType(tp1, cls2)
592592 if (base.typeSymbol == cls2) return true
593593 }
594- else if tp1.isLambdaSub && ! tp1.isAnyKind then
594+ else if tp1.typeParams.nonEmpty && ! tp1.isAnyKind then
595595 return recur(tp1, EtaExpansion (tp2))
596596 fourthTry
597597 }
Original file line number Diff line number Diff line change 1+ package pkg
2+
3+ trait Foo1 [A ]
4+ trait Foo2 [A ] extends Foo1 [A ]
5+
6+ trait Bar [F [_]]
7+ object Bar {
8+ implicit val bar : Bar [pkg.Foo2 ] = ???
9+ }
10+
11+ trait Qux
12+ object Qux {
13+ implicit def qux [F [_]](implicit bar : Bar [F ]): F [Qux ] = ???
14+ }
Original file line number Diff line number Diff line change 1+ import pkg ._
2+
3+ object Test {
4+ implicitly[Foo2 [Qux ]]
5+ implicitly[Foo1 [Qux ]]
6+ }
You can’t perform that action at this time.
0 commit comments