Skip to content

Commit d6d29fc

Browse files
Merge pull request #9142 from dotty-staging/fix-#5413
Fix #5413: Add regression tests
2 parents 600357a + a085f1e commit d6d29fc

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tests/pos/i5413-a.scala

+7
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

+6
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)