Skip to content

Commit a085f1e

Browse files
committed
Fix #5413: Add regression tests
1 parent fbafb72 commit a085f1e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tests/pos/i5413-a.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
trait Or[A]
2+
trait C
3+
4+
object ImplicitChainTest {
5+
def ipl[A](implicit from: A => Or[A]): C = null
6+
ipl
7+
}

tests/pos/i5413-b.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
object Foo {
2+
type Or[A]
3+
def foo[A](from: A => Or[A]): Any = null
4+
def id[A]: A => A = identity
5+
foo(id)
6+
}

0 commit comments

Comments
 (0)