Bug Report
๐ Search Terms
union types narrowed incorrectly
๐ Version & Regression Information
v4.3.0-dev.20210426
โฏ Playground Link
Playground link with relevant code
๐ป Code
declare function assert<T>(value: any): asserts value is T
declare const foo: number | string | boolean
assert<1 | string>(foo)
const bar = foo //string
๐ Actual behavior
foo is narrowed to string
๐ Expected behavior
foo should be narrowed to 1 | string