Skip to content

Fix #7839: Improve error message for implicit parameters #8960

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
May 13, 2020

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@nicolasstucki nicolasstucki self-assigned this May 12, 2020
@nicolasstucki nicolasstucki linked an issue May 12, 2020 that may be closed by this pull request
@nicolasstucki nicolasstucki marked this pull request as ready for review May 12, 2020 14:26
| ^
| Malformed macro parameter: dummyImplicit
|
| Parameters may only be:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does it resolve DummyImplicit at all if it is neither of the two cases below?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a static check that happens after typechecking. We do not modify in any way the typing of expressions within top level splices, we only restrict it based terms that can be interpreted when evaluating the macro.

@anatoliykmetyuk anatoliykmetyuk merged commit 492c100 into scala:master May 13, 2020
@anatoliykmetyuk anatoliykmetyuk deleted the fix-#7839 branch May 13, 2020 13:25
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.

implicit parameters passed to macros can not be resolved
3 participants