File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ namespace ts.formatting {
442
442
case SyntaxKind . ForInStatement :
443
443
// "in" keyword in [P in keyof T]: T[P]
444
444
case SyntaxKind . TypeParameter :
445
- return context . currentTokenSpan . kind === SyntaxKind . InKeyword || context . nextTokenSpan . kind === SyntaxKind . InKeyword ;
445
+ return context . currentTokenSpan . kind === SyntaxKind . InKeyword || context . nextTokenSpan . kind === SyntaxKind . InKeyword || context . currentTokenSpan . kind === SyntaxKind . EqualsToken || context . nextTokenSpan . kind === SyntaxKind . EqualsToken ;
446
446
// Technically, "of" is not a binary operator, but format it the same way as "in"
447
447
case SyntaxKind . ForOfStatement :
448
448
return context . currentTokenSpan . kind === SyntaxKind . OfKeyword || context . nextTokenSpan . kind === SyntaxKind . OfKeyword ;
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts"/>
2
+
3
+ /////**/type Bar<T extends any[]= any[]> = T
4
+
5
+
6
+ format . document ( ) ;
7
+ goTo . marker ( ) ;
8
+ verify . currentLineContentIs ( 'type Bar<T extends any[] = any[]> = T' ) ;
You can’t perform that action at this time.
0 commit comments