Unexpected error: This comparison appears to be unintentional because the types '"yes"' and '"no"' have no overlap.(2367)
#60586
Labels
Duplicate
An existing issue was already created
π Search Terms
This comparison appears to be unintentional because the types '"yes"' and '"no"' have no overlap.(2367)
π Version & Regression Information
This reproduces also in TS 5.6, 5.5.
β― Playground Link
https://www.typescriptlang.org/play/?#code/MYGwhgzhAEBiD29oG8BQ0MFMB2AXAlriJgLY64Bc0A5AJ6YTXQA+N28TAvDfY6gL6pUoSDABCYAE4ohGDAAdJ+AG5hcmaADNE0btkwB3OIgAUASllyA5plzRyhYmTzmZc99Em2ArpOzRcAAt8CAA6bXhQhyJScgBudDlBRIwAIylXNA85fE1oEyCQqLxHWLxdTm46BmozN2yPQrCI4oIY5zsq9moEho9c-KbW0o6Kro46rL6GlOnk6blgeGwIeGJQkHgrAuCw6KdyM16GwXdBZKWVu3TpPUNoCUlzBJvQm+fUIA
π» Code
π Actual behavior
The check in line 16 (
if (this.entitlement === 'no') {
) produces a compile error:π Expected behavior
The check in line 16 (
if (this.entitlement === 'no') {
) does not produce a compile error.Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: