-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
function foo() {
}
if (!foo) {
let x = 10
}
else {
}
Expected: Error on !foo
that the condition is always true because foo
is defined.
Actual: No error.
Also, any work on this should include the following test:
function foo() {
}
if (!foo) {
}
else {
foo()
}
bpasero, IllusionMH, kabentley, pmconne, brandon-leapyear and 3 more
Metadata
Metadata
Assignees
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript