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
Can you do something to avoid x$3 in error message? I think that ls instead of x$3 will be much better
typeOI=Option[Int]
defboo(z: OI, ls: List[OI], rs: List[OI]): (List[OI], List[OI]) = {
val (ls,rs) = z match {
caseSome(_) => (z::ls, rs)
case _ => (ls, z::rs)
}
(ls,rs)
}
/* recursive value x$3 needs type val (ls,rs): (List[OI], List[OI]) = z match { ^*/
The text was updated successfully, but these errors were encountered:
-- [E045] Cyclic Error: t7808.scala:5:9 --------------------------------------------------------------------------------
5 | val (ls, rs) = z match {
| ^
| Recursive value $1$ needs type
|
| The error occurred while trying to compute the signature of value $1$
| which required to compute the signature of value ls
| which required to compute the signature of value $1$
|
| Run with both -explain-cyclic and -Ydebug-cyclic to see full stack trace.
|
| longer explanation available when compiling with `-explain`
Use the single non-synthetic in the error message.
Also dotty needs -explain-everything to reduce cycles of asking for more output.
Uh oh!
There was an error while loading. Please reload this page.
Can you do something to avoid x$3 in error message? I think that
ls
instead ofx$3
will be much betterThe text was updated successfully, but these errors were encountered: