Skip to content

Commit 77eb00f

Browse files
committed
test: add in regression test for #5700
1 parent 5c4e597 commit 77eb00f

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)