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

Document and add tests: collection conversions of mutable create a copy #11872

Open
lrytz opened this issue Jan 31, 2020 · 2 comments
Open

Document and add tests: collection conversions of mutable create a copy #11872

lrytz opened this issue Jan 31, 2020 · 2 comments

Comments

@lrytz
Copy link
Member

@lrytz lrytz commented Jan 31, 2020

Follow-up for #11868.

converting a mutable collection (to(collection.mutable.X), to(collection.X), toArray) always creates a copy, even if the original collection has a conforming type. converting an immutable collection doesn't copy if the collection's type conforms to the result.

@lrytz lrytz added this to the Backlog milestone Jan 31, 2020
magnolia-k pushed a commit to magnolia-k/docs.scala-lang that referenced this issue Feb 16, 2020
scala/bug#11872

In addition, the method introduction was modified to the latest method list.
magnolia-k pushed a commit to magnolia-k/docs.scala-lang that referenced this issue Feb 16, 2020
scala/bug#11872

In addition, the method introduction was modified to the latest method list.
@magnolia-k

This comment has been minimized.

Copy link

@magnolia-k magnolia-k commented Feb 16, 2020

Made a PR about changes to the documentation.
The next step is to add tests, but I'd like some advice on which tests to add, or create a new test file.

@SethTisue

This comment has been minimized.

Copy link
Member

@SethTisue SethTisue commented Feb 18, 2020

@Ichoran would scala/scala-collection-laws be a better place than scala/scala for a test like this, cutting across many collection types?

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.