You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revert "Stop looking at binding patterns for type argument inference" (#46013)
* Revert "Stop looking at binding patterns for type argument inference (#45719)"
This reverts commit be618b1.
* Update error baseline for moved lib file declaration
Copy file name to clipboardExpand all lines: src/compiler/checker.ts
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25445,8 +25445,7 @@ namespace ts {
25445
25445
if (result) {
25446
25446
return result;
25447
25447
}
25448
-
if (!(contextFlags! & ContextFlags.SkipBindingPatterns) && isBindingPattern(declaration.name)) {
25449
-
// This is less a contextual type and more an implied shape - in some cases, this may be undesirable
25448
+
if (!(contextFlags! & ContextFlags.SkipBindingPatterns) && isBindingPattern(declaration.name)) { // This is less a contextual type and more an implied shape - in some cases, this may be undesirable
0 commit comments