Skip to content

Commit f17174c

Browse files
committed
Fix build after merging #35862
1 parent 3433434 commit f17174c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31622,7 +31622,7 @@ namespace ts {
3162231622
const childSymbol = getSymbolAtLocation(childNode);
3162331623
if (childSymbol && childSymbol === testedFunctionSymbol) {
3162431624
// If the test was a simple identifier, the above check is sufficient
31625-
if (isIdentifier(ifStatement.expression)) {
31625+
if (isIdentifier(condExpr)) {
3162631626
return true;
3162731627
}
3162831628
// Otherwise we need to ensure the symbol is called on the same target

Diff for: tests/baselines/reference/truthinessCallExpressionCoercion.types

+2-2
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ function A(stats: StatsBase<any>) {
189189

190190
console.log(`[Directory] ${stats.ctime}`)
191191
>console.log(`[Directory] ${stats.ctime}`) : void
192-
>console.log : (message?: any, ...optionalParams: any[]) => void
192+
>console.log : (...data: any[]) => void
193193
>console : Console
194-
>log : (message?: any, ...optionalParams: any[]) => void
194+
>log : (...data: any[]) => void
195195
>`[Directory] ${stats.ctime}` : string
196196
>stats.ctime : number
197197
>stats : StatsBase<any>

0 commit comments

Comments
 (0)