Skip to content

Commit 69ad01e

Browse files
authored
Removing a requirement in toi_promote which is confusing and unnece… (#4507)
This PR removes a requirement in `toi_promote` which is confusing and unnecessary.
1 parent 3911cea commit 69ad01e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/type-system/flow-analysis.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,9 @@ 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
476-
whose static type is a type of interest promotes to that type._
474+
- If the `written` type is in `p2` then `newPromotionChain` is
475+
`[...promotionChain, written]`. _Writing a value whose static type is a
476+
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
479479
definition of a promotion chain, and is valid for declared type

0 commit comments

Comments
 (0)