We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d9e31b commit 61aa293Copy full SHA for 61aa293
docs/docs/reference/union-types.md
@@ -42,7 +42,7 @@ scala> val either: Password | UserName = if (true) name else password
42
val either: Password | UserName = UserName(Eve)
43
```
44
45
-The type of `res2` is `Object | Product`, which is a supertype of
+The type of `res2` is `Object & Product`, which is a supertype of
46
`UserName` and `Product`, but not the least supertype `Password |
47
UserName`. If we want the least supertype, we have to give it
48
explicitely, as is done for the type of `Either`. More precisely, the
0 commit comments