Skip to content

Commit 74d44f9

Browse files
committed
Removing a requirement in toi_promote which is confusing and unnecessary
1 parent 70e9abc commit 74d44f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/type-system/flow-analysis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ Definitions:
471471
_The types in `p1` are known as the types of interest._
472472
- Let `p2` be the set `p1 \ { provisionalType }` _(where `\` denotes set
473473
difference)_.
474-
- If the `written` type is in `p2`, and `written <: provisionalType`, then
475-
`newPromotionChain` is `[...promotionChain, written]`. _Writing a value
474+
- If the `written` type is in `p2` then `newPromotionChain` is
475+
`[...promotionChain, written]`. _Writing a value
476476
whose static type is a type of interest promotes to that type._
477477
- _By precondition, `written <: declared` and `written <: T` for all types
478478
in `promotionChain`. Therefore, `newPromotionChain` satisfies the

0 commit comments

Comments
 (0)