Open s5bug opened 2 months ago
On the latest nightly the output changes to:
-- Error: /Users/pchabelski/IdeaProjects/scala-cli-tests/compiler-repro/repro.scala:3:10
3 |def foo[A <: Foo[A]]: Unit = ()
| ^
|Recursion limit exceeded.
|Maybe there is an illegal cyclic reference?
|If that's not the case, you could also try to increase the stacksize using the -Xss JVM option.
|For the unprocessed stack trace, compile with -Xno-decode-stacktraces.
|A recurring operation is (inner to outer):
|
| type parameters of Foo[A]
| type parameters of <: Foo[A]
| type parameters of A
| type parameters of A
| type parameters of Foo[A]
| type parameters of <: Foo[A]
| type parameters of A
| type parameters of A
| type parameters of Foo[A]
| type parameters of <: Foo[A]
| ...
|
| type parameters of A
| type parameters of Foo[A]
| type parameters of <: Foo[A]
| type parameters of A
| type parameters of A
| type parameters of Foo[A]
| type parameters of <: Foo[A]
| type parameters of A
| type parameters of Foo[A]
| type parameters of <: Foo[A]
1 error found
Compiler version
3.4.1, 3.4.2-RC1
Minimized code
Output (click arrow to expand)
3.4.2-RC1:
etc
I minimized this from
which also crashes (but differently, due to a stack overflow) rather than producing a compile error.
Unfortunately I lack scalac on this current computer and I can't figure out how to get Scastie to give me a real stacktrace: