-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 mapping TypeMaps over annotations #15948
Conversation
Avoids orphan parameters when pickling Fixes scala#15922 I am not sure about the status of the test in custome-args/captures. Should it pass or be rejected? But in any case it does not crash anymore.
@@ -58,7 +59,7 @@ object Annotations { | |||
if tm.isRange(x) then x | |||
else | |||
val tp1 = tm(tree.tpe) | |||
foldOver(if tp1 =:= tree.tpe then x else tp1, tree) | |||
foldOver(if tp1 frozen_=:= tree.tpe then x else tp1, tree) |
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.
The change that fixed the test case was this one.
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! 👍
What is the test in |
I meant pos-customargs/captures |
@@ -19,6 +19,7 @@ i6507b.scala | |||
i12299a.scala | |||
i13871.scala | |||
i15181.scala | |||
i15922.scala |
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.
How come?
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.
I did not have the time to follow up on this.
Yes it should be accepted. Although it was taken from a negative example, it does not include the line of code that really should be rejected (the line that actually uses the boxed capability). |
Maybe let's merge this PR first and open an issue to follow up the pickling failure of |
Avoids orphan parameters when pickling
Fixes #15922
I am not sure about the status of the test in custome-args/captures. Should it
pass or be rejected? But in any case it does not crash anymore.