You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: design/mvp/Subtyping.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ But roughly speaking:
15
15
|`list`| covariant element subtyping |
16
16
|`tuple`|`(tuple T ...) <: T`|
17
17
|`option`|`T <: (option T)`|
18
-
|`expected`|`T <: (expected T _)`|
18
+
|`result`|`T <: (result T _)`|
19
19
|`union`|`T <: (union ... T ...)`|
20
20
|`own`, `borrow`| none (although resource subtyping may be introduced in the future which would imply handle subtyping) |
21
21
|`func`| parameter names must match in order; contravariant parameter subtyping; superfluous parameters can be ignored in the subtype; `option` parameters can be ignored in the supertype; covariant result subtyping |
0 commit comments