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

Wrong coll at ArrayBuffer.padTo #22892

Open
som-snytt opened this issue Mar 31, 2025 · 0 comments
Open

Wrong coll at ArrayBuffer.padTo #22892

som-snytt opened this issue Mar 31, 2025 · 0 comments

Comments

@som-snytt
Copy link
Contributor

Compiler version

3.6.4

Problem

ArrayBuffer#padTo doc does not respect its $coll definition. ("A copy of this sequence...")

https://www.scala-lang.org/files/archive/api/current/scala/collection/mutable/ArrayBuffer.html#padTo-fffffb3c

Expectation

Works as on Scala 2, where it calls itself an "array buffer".

https://www.scala-lang.org/api/2.13.15/scala/collection/mutable/ArrayBuffer.html#padTo[B%3E:A](len:Int,elem:B):CC[B]

Noticed at related ticket scala/bug#12908 (comment)

where Buffer is supplied with define coll so that it no longer calls itself "shrinkable".

@som-snytt som-snytt added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label area:doctool and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Mar 31, 2025
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

1 participant