File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff line change 11type Foo [A ] = A
22
3- def foo [A <: Foo [A ]]: Unit = () // error // error
3+ def foo [A <: Foo [A ]]: Unit = () // error
You can’t perform that action at this time.
0 commit comments