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 instrumentation for for-loops #6270

Closed
scabug opened this issue Aug 22, 2012 · 2 comments
Closed

Wrong instrumentation for for-loops #6270

scabug opened this issue Aug 22, 2012 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Aug 22, 2012

The following file breaks down the instrumenter:

{code}object MyTest {
for (x <- xs) yield x*x
}

it spits out the following:

object MyTest {
for (import scala.runtime.WorksheetSupport._; def main(args: Array[String])=$execute{;$skip(41); val res$0 = x <- xs) yield x*x;System.out.println("""res0: = """ + $show(res$0))}
}
{code}

@scabug
Copy link
Author

scabug commented Aug 22, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6270?orig=1
Reporter: @dragos
Affected Versions: 2.10.0
Other Milestones: 2.10.0

@scabug
Copy link
Author

scabug commented Oct 19, 2012

@dotta said:
At some level, this ticket no longer makes sense since we have effectively already moved out of the compiler the instrumentation logic (see #6458)

Furthermore, this issue has been fixed. Please, close the ticket.

@scabug scabug closed this as completed Dec 7, 2012
@scabug scabug added this to the 2.9.2 milestone Apr 7, 2017
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