Skip to content

Fix #7618: Remove QuoteContext.macroContext #7681

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

Conversation

nicolasstucki
Copy link
Contributor

This was an old context that was synthesized for macros before we used implicit function types within splices to provide the context.

This was an old context that was synthesized for macros before we used implicit function types within splices to provide the context.
@nicolasstucki nicolasstucki force-pushed the remove-QuoteContext-macro-context branch from 963fdbd to ac9660a Compare December 4, 2019 10:42
@nicolasstucki nicolasstucki changed the title Remove QuoteContext.macroContext Fix #7618: Remove QuoteContext.macroContext Dec 4, 2019
object Compiler {
import Exp._

inline def compile(e: Exp, env: Map[String, Expr[Int]])(given ctx: QuoteContext): Expr[Int] = inline e match { // error
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This may conflict with #7684. One of the PRs needs to be rebased on the other one.

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@nicolasstucki nicolasstucki merged commit 9363540 into scala:master Dec 5, 2019
@nicolasstucki nicolasstucki deleted the remove-QuoteContext-macro-context branch December 5, 2019 09:47
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