Skip to content

Add scala.quoted.qctx #8939

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 1 commit into from
May 11, 2020
Merged

Add scala.quoted.qctx #8939

merged 1 commit into from
May 11, 2020

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented May 11, 2020

This method allows to get the current QuoteContext without naming it.

def f(using QuoteContext) = {
	...
	qctx // equivalent to summon[QuoteContext]
	...
}

Also allows import qctx.tasty._

This method allows to get the current QuoteContext without naming it.

```scala
def f(using QuoteContext) = {
	...
	qctx // equivalent to summon[QuoteContext]
	...
}
```
@nicolasstucki nicolasstucki self-assigned this May 11, 2020
@nicolasstucki nicolasstucki requested a review from liufengyun May 11, 2020 07:36
@liufengyun liufengyun marked this pull request as ready for review May 11, 2020 08:14
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

@liufengyun liufengyun merged commit 5f6837a into scala:master May 11, 2020
@liufengyun liufengyun deleted the add-qctx branch May 11, 2020 08:15
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