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.
toi_promote
1 parent 70e9abc commit 74d44f9Copy full SHA for 74d44f9
resources/type-system/flow-analysis.md
@@ -471,8 +471,8 @@ Definitions:
471
_The types in `p1` are known as the types of interest._
472
- Let `p2` be the set `p1 \ { provisionalType }` _(where `\` denotes set
473
difference)_.
474
- - If the `written` type is in `p2`, and `written <: provisionalType`, then
475
- `newPromotionChain` is `[...promotionChain, written]`. _Writing a value
+ - If the `written` type is in `p2` then `newPromotionChain` is
+ `[...promotionChain, written]`. _Writing a value
476
whose static type is a type of interest promotes to that type._
477
- _By precondition, `written <: declared` and `written <: T` for all types
478
in `promotionChain`. Therefore, `newPromotionChain` satisfies the
0 commit comments