Skip to content

Remove anomalies and gaps in handling annotations #13474

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 4 commits into from
Sep 4, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 4, 2021

PR analogous to #13348 but for cc-experiment

@odersky odersky added the cc-experiment Intended to be merged with cc-experiment branch on origin label Sep 4, 2021
Always print annotation arguments if there are some, except for Body annotations
A TypeMap previously mapped the annotation only if it returned a different
result for the parent type. There is no good reason for this behavior. We
now map always, but allow the mapping operation to be defined in the annotation.

The change uncovers a bug illustrated in annotDepMethType.scala, which is fixed
in the next commit.
Fix problems handling function types that are dependent through their result annotations.
@odersky odersky merged commit 9693cd8 into scala:cc-experiment Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cc-experiment Intended to be merged with cc-experiment branch on origin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant