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
package Tests
def combineNaive[A, B](f: (A) => Option[B])(l: List[List[A]]): List[B] =
val tmp: List[B] = for (
i <- (0 to l.size - 1);
// j <- (i + 1 to l.size - 1);
a <- (0 to l(i).size - 1);
// b <- (0 to l(j).size - 1);
res <- f(l(i)(a))
) yield res
tmp.toList
Note:
The problem occurs only when I compile the code with sbt in VS Code. If compile that code with scalac I get a type error but no compiler crash.
If I remove the commented lines, the compiler still crashes.
If I change tmp.toList in the last line to tmp the compiler also still crashes.
Compiler version
3.6.2
Minimized code
Note:
sbt
in VS Code. If compile that code withscalac
I get a type error but no compiler crash.tmp.toList
in the last line totmp
the compiler also still crashes.Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: