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

Si 6663 2.10.x fix type parameter on selectDynamic #1621

Merged
merged 1 commit into from
Nov 21, 2012

Conversation

jannic
Copy link
Contributor

@jannic jannic commented Nov 14, 2012

The first commit fixes the bug reported in SI-6663, the second one another similar case as noted in a comment on that bug report.

I'd guess that there are other possible contents of cxTree not yet handled. Is there a better way to fix this than to add all such cases manually to mkInvoke?

Same as pull request 1619, but targeted at 2.10.x, as requested by @retronym.

Review by @namin (also requested by @retronym)

@namin
Copy link
Contributor

namin commented Nov 14, 2012

LGTM.

@scala-jenkins
Copy link

Started jenkins job pr-rangepos at https://scala-webapps.epfl.ch/jenkins/job/pr-rangepos/945/

@scala-jenkins
Copy link

jenkins job pr-rangepos: Success - https://scala-webapps.epfl.ch/jenkins/job/pr-rangepos/945/

@scala-jenkins
Copy link

Started jenkins job pr-scala-testsuite-linux-opt at https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/1652/

@scala-jenkins
Copy link

jenkins job pr-scala-testsuite-linux-opt: Success - https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/1652/

@adriaanm
Copy link
Contributor

please squash these commits and update your pull request by push --forceing to your repo on github

these fixes for the same ticket are small enough to go in one commit so we keep our history easy to follow

Fix mkInvoke to handle selectDynamic calls of the form

  new C.foo[T].xyz

or

  new C.foo[T].xyz :U

(where C extends Dynamic)

Without this patch, the type parameter was silently ignored, and
possibly inferred to a different.

This patch fixes mkInvoke to handle these cases, where ctxTree has
the form Select(TypeApply(fun, targs), nme) or Typed(...)
@jannic
Copy link
Contributor Author

jannic commented Nov 16, 2012

ok, done.
(and sorry for screwing up the rebase first, in case someone noticed)

@adriaanm
Copy link
Contributor

awesome, thanks!

@adriaanm
Copy link
Contributor

PLS REBUILD ALL

@scala-jenkins
Copy link

Started jenkins job pr-rangepos at https://scala-webapps.epfl.ch/jenkins/job/pr-rangepos/971/

@scala-jenkins
Copy link

jenkins job pr-rangepos: Success - https://scala-webapps.epfl.ch/jenkins/job/pr-rangepos/971/

@scala-jenkins
Copy link

Started jenkins job pr-scala-testsuite-linux-opt at https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/1681/

@scala-jenkins
Copy link

jenkins job pr-scala-testsuite-linux-opt: Success - https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/1681/

@jsuereth
Copy link
Contributor

Thanks for the fix!

jsuereth added a commit that referenced this pull request Nov 21, 2012
Si 6663 2.10.x fix type parameter on selectDynamic
@jsuereth jsuereth merged commit 29293ab into scala:2.10.x Nov 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants