-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Move quote tagging to Staging #8342
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
Conversation
dc429ad
to
4fd5f04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, LGTM
@@ -52,7 +52,8 @@ object PickledQuotes { | |||
private def dealiasTypeTags(tp: Type)(implicit ctx: Context): Type = new TypeMap() { | |||
override def apply(tp: Type): Type = { | |||
val tp1 = tp match { | |||
case tp: TypeRef if tp.typeSymbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot) => tp.dealias | |||
case tp: TypeRef if tp.typeSymbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot) => | |||
tp.symbol.info.hiBound |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason the type aliases get transformed into type bounds with equivalent upper and lower bound but they do not get dealiased. I will investigate further.
f306d32
to
c24a4d3
Compare
Fix scala#8302, fix scala#8052 and fix scala#7521
c24a4d3
to
e1b2378
Compare
Fix #8302, fix #8052 and fix #7521.