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
Compilation hangs when using scala-cli. In a larger code base, I've seen crashes with stacks like the following, though I haven't reproduced the crash in a standalone program. The hang & crash are both related to making F covariant in the definition of Free.
In the example above, changing the left-associated flatMap case to case FlatMap(FlatMap(fx, f), g) => ??? fixes the issue.
Compiler version
3.1.1-RC2
Minimized code
Output
Compilation hangs when using scala-cli. In a larger code base, I've seen crashes with stacks like the following, though I haven't reproduced the crash in a standalone program. The hang & crash are both related to making
F
covariant in the definition ofFree
.In the example above, changing the left-associated flatMap case to
case FlatMap(FlatMap(fx, f), g) => ???
fixes the issue.Another workaround is explicitly providing types to the
flatMap
calls in the problematic expression:The text was updated successfully, but these errors were encountered: