-
Notifications
You must be signed in to change notification settings - Fork 395
Move undefOr2jsAny
implicit conversion to js.Any
companion
#4904
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
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.
There's probably not much actual unit testing we can do. However, it would be good to test locally. Have you tried to publish locally using the instructions at https://github.com/scala-js/scala-js/blob/main/DEVELOPING.md#publish-locally (for 2.13.11) then validate that it works the way we want in a Scala 3 project?
How would you feel about adding a test here? scala-js/sbt-plugin/src/sbt-test/scala3/basic/Main.scala Lines 15 to 26 in 0d19d98
|
Oh yes we can add a test in there. Good point. |
0a60bf9
to
3ff21a2
Compare
3ff21a2
to
3fe44dd
Compare
undefOr2jsAny
implicit conversion to Any
companionundefOr2jsAny
implicit conversion to js.Any
companion
Did the appveyor have a legitimate failure, or did it just timeout? |
Spurious failure, apparently. Rerunning the build made it pass. |
As discussed on Discord. Sorry, I did the minimal thing, and will appreciate hints for what else to do π
The motivation for this change is that this implicit conversion will automatically be in scope on Scala 3 (as well as Scala 2), which is not currently the case. This forces the use of casts in user code as can be seen in the scala-js-dom Scala 3 PR in scala-js/scala-js-dom#450.