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 f6e057c commit 7d64280Copy full SHA for 7d64280
docs/docs/reference/new-types/union-types.md
@@ -40,7 +40,7 @@ val either: Password | UserName = UserName(Eve)
40
```
41
42
The type of `res2` is `Object & Product`, which is a supertype of
43
-`UserName` and `Product`, but not the least supertype `Password |
+`UserName` and `Password`, but not the least supertype `Password |
44
UserName`. If we want the least supertype, we have to give it
45
explicitly, as is done for the type of `either`.
46
0 commit comments