Skip to content

Commit 4f33c87

Browse files
committed
Add regression test for scala#6384
Fixed by 18ce5d2 in scala#6467
1 parent 2d28962 commit 4f33c87

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/pos/i6384.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
trait Tc1[A]
2+
trait Tc2[A]
3+
4+
class X
5+
object X {
6+
implicit def catchAll[F[_]]: F[X] = ???
7+
}
8+
9+
type ManualLambda[a] = Tc1[a] & Tc2[a]
10+
11+
object app extends App {
12+
implicitly[Tc1[X]] //ok
13+
implicitly[ManualLambda[X]] // ok
14+
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
15+
}

0 commit comments

Comments
 (0)