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 position for applyDynamic call #8003

Closed
scabug opened this issue Nov 23, 2013 · 1 comment
Closed

Wrong position for applyDynamic call #8003

scabug opened this issue Nov 23, 2013 · 1 comment
Assignees
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Nov 23, 2013

A call of an applyDynamic method has wrong positions:

object X {
  val d = new D
  d.method(10)
  d(10)
}
import language.dynamics
class D extends Dynamic {
  def applyDynamic(name: String)(value: Any) = name
}

Compiled with scalac -Yrangepos -Xprint-pos -Xprint:typer -Ystop-after:typer x.scala:

    [29:41][29:30][29:30][29]X.this.d.applyDynamic([29]"method")([38:40]10);
    [44:49]<44:45><44:45>[44]X.this.d.applyDynamic(<44:45>"apply")([46:48]10)

where [29] in the first line is not correct.

@scabug
Copy link
Author

@scabug scabug commented Nov 23, 2013

Imported From: https://issues.scala-lang.org/browse/SI-8003?orig=1
Reporter: @sschaef
Affected Versions: 2.11.0
Other Milestones: 2.11.0-M8

@scabug scabug closed this Nov 26, 2013
@scabug scabug added this to the 2.10.4-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants