Skip to content

Commit 11a8fad

Browse files
committed
Fix test
1 parent d24b6f2 commit 11a8fad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/neg/i4385.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
class i0 { // error: stack overflow.
1+
class i0 {
22
class i1 { type i2 }
33
type i3 = i1.i2 // error
4-
type i4 = i0 { type i1 <: i4 } // this line triggers the overflow
5-
// (and reporting it here would be better).
6-
// This test ensure the above stack overflow is reported and not hidden by the earlier error.
4+
type i4 = i0 { type i1 <: i4 } // error: recursion limit exceeded
5+
// This test ensures the above stack overflow is reported and not hidden by the earlier error.
76
}

0 commit comments

Comments
 (0)