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.
2 parents 7f579a4 + 7d64280 commit b9ce031Copy full SHA for b9ce031
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