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 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 commented Nov 3, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6611?orig=1
Reporter: @retronym

@scabug
Copy link
Author

scabug commented Nov 3, 2012

@retronym said:
scala/scala#1568

@scabug
Copy link
Author

scabug commented Nov 13, 2012

@retronym said:
Regression from 2.8.2

@scabug
Copy link
Author

scabug commented Jan 23, 2013

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

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