File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ impl<'a> Comments<'a> {
323323 }
324324
325325 if !source_text. all_bytes_match ( start, comment. span . start , |b| {
326- b. is_ascii_whitespace ( ) || matches ! ( b, b')' | b',' )
326+ b. is_ascii_whitespace ( ) || matches ! ( b, b')' | b',' | b';' )
327327 } ) {
328328 return & comments[ ..idx] ;
329329 }
Original file line number Diff line number Diff line change 1+ type _Test = {
2+ [ T in number ] : T ;
3+ // If there are any BinaryOperator members that don't have a corresponding
4+ // BinaryOperatorToText, then this line will error with "Type 'T' cannot
5+ // be used to index type 'BinaryOperatorToText'."
6+ } ;
Original file line number Diff line number Diff line change 1+ -- -
2+ source : crates / oxc_formatter / tests / fixtures / mod .rs
3+ -- -
4+ ==================== Input ====================
5+ type _Test = {
6+ [T in number ]: T ;
7+ // If there are any BinaryOperator members that don't have a corresponding
8+ // BinaryOperatorToText, then this line will error with "Type 'T' cannot
9+ // be used to index type 'BinaryOperatorToText'."
10+ };
11+
12+ ==================== Output ====================
13+ type _Test = {
14+ [T in number ]: T ;
15+ // If there are any BinaryOperator members that don't have a corresponding
16+ // BinaryOperatorToText, then this line will error with "Type 'T' cannot
17+ // be used to index type 'BinaryOperatorToText'."
18+ };
19+
20+ ===================== End =====================
You can’t perform that action at this time.
0 commit comments