File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3580,11 +3580,11 @@ namespace ts {
3580
3580
let diagnostic : DiagnosticMessage ;
3581
3581
if ( isFunctionTypeNode ( type ) ) {
3582
3582
diagnostic = isInUnionType
3583
- ? Diagnostics . Function_type_notation_must_be_parenthesized_when_used_in_a_union_type ;
3583
+ ? Diagnostics . Function_type_notation_must_be_parenthesized_when_used_in_a_union_type
3584
3584
: Diagnostics . Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type ;
3585
3585
}
3586
3586
else {
3587
- diagnostic = isInUnionType ?
3587
+ diagnostic = isInUnionType
3588
3588
? Diagnostics . Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type
3589
3589
: Diagnostics . Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type ;
3590
3590
@@ -3602,7 +3602,7 @@ namespace ts {
3602
3602
) : TypeNode {
3603
3603
const pos = getNodePos ( ) ;
3604
3604
const hasLeadingOperator = parseOptional ( operator ) ;
3605
- let type = hasLeadingOperator && parseFunctionOrConstructorTypeToError ( operator === SyntaxKind . BarToken )
3605
+ let type = hasLeadingOperator && parseFunctionOrConstructorTypeToError ( operator === SyntaxKind . BarToken )
3606
3606
|| parseConstituentType ( ) ;
3607
3607
if ( token ( ) === operator || hasLeadingOperator ) {
3608
3608
const types = [ type ] ;
You can’t perform that action at this time.
0 commit comments