-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix #4493 and #4514 #4518
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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`
Use captured type tags for macro type parameters. Before this change we just kept the type and failed when we tied to pickle it.