Skip to content

Commit

Permalink
Merge pull request #10071 from griggt/fix-#6384
Browse files Browse the repository at this point in the history
Fix #6384: Add regression test
  • Loading branch information
nicolasstucki committed Oct 23, 2020
2 parents b26dbc4 + 4f33c87 commit 9cdc465
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 9cdc465

Please sign in to comment.