Most of the reflection API is not supported on Scala.JS, and it's required for structural types to work.
You wouldn't even need to do the check like you do on the JVM. But I guess the JS transformations happen on post-structural-desugared code.
-
-
I'm not speaking with any authority on this, though. :)
-
Turns out, looks like it's working fine: https://scalafiddle.io/sf/oPgvXyx/0 Or am I misinterpreting the results?
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.