Why union type for members with the same name doesn't behave similar to intersection type? #14174
user753
started this conversation in
General Discussion
Replies: 2 comments 1 reply
-
I believe because if |
Beta Was this translation helpful? Give feedback.
1 reply
-
https://github.com/lampepfl/dotty/discussions is for "compiler internals Q&A" for questions, please use https://users.scala-lang.org (or see https://www.scala-lang.org/community for other options) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
But for
there is an error
value foo is not a member of Foo1 | Foo2
Beta Was this translation helpful? Give feedback.
All reactions