Skip to content

Fix #4540: Add hint of probable source of issue #4554

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 2 commits into from
May 22, 2018

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

Otherwise, LGTM

throw new StopInterpretation(msg, pos)
}
}

private def extraMsg = "(the most common reason for that is that you cannot use inline macro implementations in the same compilation run that defines them)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe make this sentence shorter as it is in parenthesis. Or make it a separate sentence.

Something like "You defined and used macros in the same compilation run?"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Splitted into two sentences

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will keep this text as it is the same as for scala 2 macros andif they seach for it they might still get some useful insight on why they need to be in different compilation units.

@nicolasstucki nicolasstucki merged commit c627a99 into master May 22, 2018
@allanrenucci allanrenucci deleted the nicolasstucki-patch-1 branch May 22, 2018 15:15
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