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

surface: Support intersection type in Scala 3 #3314

Closed
xerial opened this issue Dec 20, 2023 · 0 comments · Fixed by #3316
Closed

surface: Support intersection type in Scala 3 #3314

xerial opened this issue Dec 20, 2023 · 0 comments · Fixed by #3316

Comments

@xerial
Copy link
Member

xerial commented Dec 20, 2023

As type aliases can be resolved eagerly in Scala 3 #2200, it will no longer work for binding different objects to the same type.
As a workaround, intersection type can be used as an alternative https://docs.scala-lang.org/scala3/reference/new-types/intersection-types.html

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 a pull request may close this issue.

1 participant