Skip to content

Commit

Permalink
Add regression test for scala#6384
Browse files Browse the repository at this point in the history
Fixed by 18ce5d2 in scala#6467
  • Loading branch information
griggt committed Oct 22, 2020
1 parent 2d28962 commit 4f33c87
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/pos/i6384.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
trait Tc1[A]
trait Tc2[A]

class X
object X {
implicit def catchAll[F[_]]: F[X] = ???
}

type ManualLambda[a] = Tc1[a] & Tc2[a]

object app extends App {
implicitly[Tc1[X]] //ok
implicitly[ManualLambda[X]] // ok
implicitly[Tc1[X] & Tc2[X]] // no implicit argument of type Tc1[X] & Tc2[X] was found for parameter ev of method implicitly in object DottyPredef
}

0 comments on commit 4f33c87

Please sign in to comment.