Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions resources/type-system/flow-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,9 @@ Definitions:
_The types in `p1` are known as the types of interest._
- Let `p2` be the set `p1 \ { provisionalType }` _(where `\` denotes set
difference)_.
- If the `written` type is in `p2`, and `written <: provisionalType`, then
`newPromotionChain` is `[...promotionChain, written]`. _Writing a value
whose static type is a type of interest promotes to that type._
- If the `written` type is in `p2` then `newPromotionChain` is
`[...promotionChain, written]`. _Writing a value whose static type is a
type of interest promotes to that type._
- _By precondition, `written <: declared` and `written <: T` for all types
in `promotionChain`. Therefore, `newPromotionChain` satisfies the
definition of a promotion chain, and is valid for declared type
Expand Down