Closed
Labels
Milestone
Description
🔎 Search Terms
never nullish
🕗 Version & Regression Information
- This is the behavior in every version I tried
⏯ Playground Link
💻 Code
class X {
constructor() {
const p = new.target ?? 32;
}
}🙁 Actual behavior
Incorrectly says
right operand of ?? is unreachable because the left operand is never nullish
🙂 Expected behavior
No error
Additional information about the issue
No response
Activity
MetaProperty is possibly nullish
MetaProperty is possibly nullish