Skip to content

Commit 6a519c8

Browse files
test: add in regression test for #5700 (#17472)
Closes #5700
2 parents 0d4cfff + 77eb00f commit 6a519c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/pos/i5700.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// https://github.com/lampepfl/dotty/issues/5700
2+
object noRecursionLimit:
3+
type M = { type T[+A]; type Ev >: T[Any] <: T[Nothing] }
4+
val M: M = ().asInstanceOf[M]
5+
def dcast(m: M.T[Any]): M.T[Int] = m: M.Ev

0 commit comments

Comments
 (0)