Skip to content

Fix #4493 and #4514 #4518

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 3 commits into from
May 17, 2018
Merged

Fix #4493 and #4514 #4518

merged 3 commits into from
May 17, 2018

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented May 11, 2018

Use captured type tags for macro type parameters. Before this change we just kept the type and failed when we tied to pickle it.

Copy link
Contributor

@biboudis biboudis left a comment

Choose a reason for hiding this comment

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

LGTM apart from a small question.

@@ -144,6 +144,9 @@ class ReifyQuotes extends MacroTransformWithImplicits with InfoTransformer {
/** We are in a `~(...)` context that is not shadowed by a nested `'(...)` */
def inSplice = outer != null && !inQuote

/** We are not in a `~(...)` or a `'(...)` */
def isRoot = outer != null
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm. I am confused. Isn't this root if the outer is null according to line 128 above?

(also a typo in the comment of the description of the parameter outer )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually it is a typo. It should be isNotRoot

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or I will simplify it to an actual isRoot and add the not at call site.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good to go, then. Thanks!

It was supposed to be `isNotRoot`, now it is actually `isRoot`
@nicolasstucki nicolasstucki merged commit f9f9f4a into scala:master May 17, 2018
@allanrenucci allanrenucci deleted the fix-#4493 branch May 17, 2018 17:32
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