Skip to content
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

Add support for scala.reflect.Selectable #2549

Merged

Conversation

WojciechMazur
Copy link
Contributor

This PR port support for scala.reflect.Selectable from Scala.js (inside Dotty compiler) and allows to use structural types in Scala Native. It fixes #2543

  • Add runtime tests using structural types
  • Add reproducer test for Structural type support for Scala 3 (linker error) #2543
  • Register primitives for Selectable.selectDynamic and Selectable.applyDynamic
  • Handle dynamic calls using port of Scala.js logic
  • Add override to scala3 library to allow for compilation of Selectable sources

@WojciechMazur WojciechMazur merged commit 325cdfc into scala-native:main Feb 4, 2022
@WojciechMazur WojciechMazur deleted the feature/scala3-selectable branch February 4, 2022 12:42
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.

Structural type support for Scala 3 (linker error)
1 participant