Skip to content

Make sure that QuoteContext are stable #8492

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

In the internal encoding of the splices we assume that these are stable and use them for some path-dependent types. If they are not stable, some of the internal inferred types become less precise.

In the internal encoding of the splices we assume that these are stable and use them for some path-dependent types.
If they are not stable, some of the internal inferred types become less precise.
@nicolasstucki nicolasstucki self-assigned this Mar 10, 2020
@nicolasstucki nicolasstucki marked this pull request as ready for review March 10, 2020 13:39
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

@@ -12,12 +12,14 @@ class Foo {
}

inline def i(): Unit = ${ Foo.impl[Any]('{
given QuoteContext = ???
val x: QuoteContext = ???
given x.type = x
Copy link
Contributor

Choose a reason for hiding this comment

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

/cc @odersky : this seems to be a friction between given and path-dependent types.

@nicolasstucki nicolasstucki merged commit ad0f495 into scala:master Mar 10, 2020
@nicolasstucki nicolasstucki deleted the ensure-quote-context-is-stable branch March 10, 2020 15:28
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