Skip to content

Commit 325e21f

Browse files
committed
Fix test i20317
1 parent dffeda7 commit 325e21f

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

tests/neg/i20317.check

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
-- Error: tests/neg/i20317.scala:3:10 ----------------------------------------------------------------------------------
2+
3 |def foo[A <: Foo[A]]: Unit = () // error
3+
| ^
4+
| Recursion limit exceeded.
5+
| Maybe there is an illegal cyclic reference?
6+
| If that's not the case, you could also try to increase the stacksize using the -Xss JVM option.
7+
| For the unprocessed stack trace, compile with -Xno-decode-stacktraces.
8+
| A recurring operation is (inner to outer):
9+
|
10+
| type parameters of Foo[A]
11+
| type parameters of <: Foo[A]
12+
| type parameters of A
13+
| type parameters of A
14+
| type parameters of Foo[A]
15+
| type parameters of <: Foo[A]
16+
| type parameters of A
17+
| type parameters of A
18+
| type parameters of Foo[A]
19+
| type parameters of <: Foo[A]
20+
| ...
21+
|
22+
| type parameters of A
23+
| type parameters of Foo[A]
24+
| type parameters of <: Foo[A]
25+
| type parameters of A
26+
| type parameters of A
27+
| type parameters of Foo[A]
28+
| type parameters of <: Foo[A]
29+
| type parameters of A
30+
| type parameters of Foo[A]
31+
| type parameters of <: Foo[A]

tests/neg/i20317.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
type Foo[A] = A
22

3-
def foo[A <: Foo[A]]: Unit = () // error // error
3+
def foo[A <: Foo[A]]: Unit = () // error

0 commit comments

Comments
 (0)