You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 -XssJVM option.
For the unprocessed stack trace, compile with-Yno-decode-stacktraces.
A recurring operation is (inner to outer):
subtype [X0] >:Option[X0] & (() =>X0) <:Option[X0] | (() =>X0) <:< [R] =>> () =>R
Expectation
Should compile (or give a clearer error message)
"Workaround"
Add a variance annotation to F[_]
The text was updated successfully, but these errors were encountered:
felher
changed the title
Recursion limit exceeded on extending enum with two type parameters
Recursion limit exceeded on extending enum with higher-kinded and proper type
May 3, 2024
Compiler version
3.3.3 LTS and 3.4.1
Minimized code
Scastie: https://scastie.scala-lang.org/2rs9WkJ9S7Wft85WByTXtw
Output
For case
C
the compiler says:Expectation
Should compile (or give a clearer error message)
"Workaround"
Add a variance annotation to
F[_]
The text was updated successfully, but these errors were encountered: