Bug Report
🔎 Search Terms
union types narrowed incorrectly
🕗 Version & Regression Information
v4.3.0-dev.20210426
⏯ Playground Link
Playground link with relevant code
💻 Code
declarefunctionassert<T>(value: any): asserts value is Tdeclareconstfoo: number|string|booleanassert<1|string>(foo)constbar=foo//string
🙁 Actual behavior
foo is narrowed to string
🙂 Expected behavior
foo should be narrowed to 1 | string
Bug Report
🔎 Search Terms
union types narrowed incorrectly
🕗 Version & Regression Information
v4.3.0-dev.20210426
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
foois narrowed tostring🙂 Expected behavior
fooshould be narrowed to1 | string