-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Accommodate adapted Scala 2 annotation value #17516
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
4624695 to
897d7a7
Compare
897d7a7 to
4878939
Compare
4878939 to
86a3225
Compare
|
looks spurious |
86a3225 to
ef2ffb8
Compare
|
This seems to be an artifact of compilation by Scala 2, either the way Scala 2 writes the attribute or the way Scala 3 unpickles it. |
|
I don't know yet if this is a separate issue: It compiles with 2 and is consumed correctly by 3. |
1cb905f to
8203c20
Compare
8203c20 to
49860db
Compare
49860db to
d93e631
Compare
d93e631 to
4c8e007
Compare
4c8e007 to
6788b36
Compare
odersky
left a comment
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.
This must hold the record for longest outstanding review ending in a simple approval. Sorry about that! And amazing there no conflicts popped up in the meantime. @som-snytt If you have nothing to add this PR, please merge.
Fixes #17515
Regression test for the standard library
Unit, ingested in Scala 3.When unpickling a Scala 2 annotation argument, the annotation constructor is overloaded and the argument winds up adapted,
"constant".asInstanceOf[String]. Strip the cast.