Skip to content

Commit 5d7fdea

Browse files
committed
Fix #4371: Add regression tests
1 parent 03887b7 commit 5d7fdea

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/neg/i4371a.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
object App {
2+
class Foo { type A = Boo#B } // error: illegal cyclic reference: alias App.Boo#B of type A refers back to the type itself
3+
class Boo { type B = Foo#A }
4+
}

tests/neg/i4371b.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object App {
2+
type T[G[X] <: X, F[X] <: G[F[X]]] // error: Recursion limit exceeded. Maybe there is an illegal cyclic reference? ...
3+
}

0 commit comments

Comments
 (0)