Skip to content
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

IndexWhere Returns Incorrect Value When Starting Index is Negative on Scala 2.11.12 #11852

Closed
adamgfraser opened this issue Jan 18, 2020 · 2 comments

Comments

@adamgfraser
Copy link

val as = List("")
as.indexWhere(_ => true, -10) // should be 0 but -10 on Scala 2.11.12

https://scastie.scala-lang.org/KSokOeYES3Wg6UE44l9psQ

It looks like there have been several similar issues in the past but none of them are still open and as Scala 2.11.12 is still being supported at this point, as I understand it, raising again.

@SethTisue
Copy link
Member

SethTisue commented Jan 18, 2020

this was fixed in Scala 2.12.2, so, closing. we only keep tickets open for issues that have not been fixed in any Scala 2 version.

perhaps the bug report will be valuable to someone as documentation. (it is unlikely there will be any further 2.11.x releases: scala/scala-dev#451)

@adamgfraser
Copy link
Author

Okay. Thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants