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

Elision of Array.apply(Predef.wrapRefArray(...)) is not safe #6611

Closed
scabug opened this issue Nov 3, 2012 · 4 comments
Closed

Elision of Array.apply(Predef.wrapRefArray(...)) is not safe #6611

scabug opened this issue Nov 3, 2012 · 4 comments

Comments

@scabug
Copy link

@scabug scabug commented Nov 3, 2012

scala> val a = Array("1")
a: Array[String] = Array(1)

scala> val a2 = Array(a: _*)
a2: Array[String] = Array(1)

scala> a2(0) = "2"

scala> a
res3: Array[String] = Array(2)

Introduced in:

scala/scala@cf820b8

@scabug
Copy link
Author

@scabug scabug commented Nov 3, 2012

Loading

@scabug
Copy link
Author

@scabug scabug commented Nov 3, 2012

Loading

@scabug
Copy link
Author

@scabug scabug commented Nov 13, 2012

@retronym said:
Regression from 2.8.2

Loading

@scabug
Copy link
Author

@scabug scabug commented Jan 23, 2013

@retronym said:
Reopened pending backport to 2.10.1: scala/scala#1953

Loading

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

Successfully merging a pull request may close this issue.

None yet
2 participants