-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Str.join throws NegativeArraySizeException given an empty Seq and a nonempty separator #48
Comments
Same thing with Scala 2.13.10:
Running it:
|
Yup, lines 368 and following of Fansi.scala:
If the args iterable is empty, length becomes negative by the length of sep, which causes a problem in the next line. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure if it's a bug, but allowing (Nil, ",") sounds more consistent.
Scala 3.1.3, fansi 0.3.1
The text was updated successfully, but these errors were encountered: