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.
TypeScript Version: 2.3.0-dev.20170217
Code
const aOrB = true ? 'a' : 'B'; const a: 'a' = aOrB;
Expected behavior: Compiles without error.
Actual behavior:
Type '"a" | "B"' is not assignable to type '"a"'. Type '"B"' is not assignable to type '"a"'.