Skip to content

Fix #7264: Propagate prototypes in quoted type patterns #7600

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 10 commits into from
Dec 9, 2019

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Nov 21, 2019

No description provided.

@nicolasstucki nicolasstucki marked this pull request as ready for review November 21, 2019 19:33
Copy link
Contributor Author

@odersky odersky left a comment

Choose a reason for hiding this comment

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

Can you try again with the changed version of baseType? ie.

    val exprPt = pt.baseType(if quoted.isType then defn.QuotedTypeClass else defn.QuotedExprClass)

I really would like to understand why that does not work, and why the alternative works. Otherwise LGTM.

@odersky odersky assigned nicolasstucki and unassigned odersky Nov 24, 2019
@scala scala deleted a comment from peykaz Nov 27, 2019
@nicolasstucki
Copy link
Contributor

Rebased

Copy link
Contributor Author

@odersky odersky left a comment

Choose a reason for hiding this comment

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

Looks good to me now

@odersky odersky merged commit bc75262 into scala:master Dec 9, 2019
@odersky odersky deleted the fix-#7264a branch December 9, 2019 10:04
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.

3 participants