Skip to content

Handle $asInstanceOf$ in Splicer #6844

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

Merged
merged 1 commit into from
Jul 24, 2019

Conversation

OlivierBlanvillain
Copy link
Contributor

Before that commit macro expansion would fail with:

"Could not find method Box$.$asInstanceOf$ with parameters (). The most common reason for that is that you apply macros in the compilation run that defines them"

The code in question comes from the way we handle Mirrors; when implicitly summoned they get a more precise type via a cast.

Doing this by name feels hacky but I'm still opening the PR for discussion.

@nicolasstucki
Copy link
Contributor

This PR needs a rebased on master

Before that commit macro expansion would fail with:

"Could not find method Box$.$asInstanceOf$ with parameters (). The most common reason for that is that you apply macros in the compilation run that defines them"
@nicolasstucki nicolasstucki merged commit 8bd0075 into scala:master Jul 24, 2019
@nicolasstucki nicolasstucki deleted the handle-$asInstanceOf$ branch July 24, 2019 04:53
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.

2 participants