File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -3409,8 +3409,7 @@ namespace ts {
3409
3409
// - "a ? (b): c" will have "(b):" parsed as a signature with a return type annotation.
3410
3410
//
3411
3411
// So we need just a bit of lookahead to ensure that it can only be a signature.
3412
- if ( ! allowAmbiguity && ( ( token ( ) !== SyntaxKind . EqualsGreaterThanToken && token ( ) !== SyntaxKind . OpenBraceToken ) ||
3413
- find ( node . parameters , p => p . initializer && ts . isIdentifier ( p . initializer ) && p . initializer . escapedText === "= not found" ) ) ) {
3412
+ if ( ! allowAmbiguity && token ( ) !== SyntaxKind . EqualsGreaterThanToken && token ( ) !== SyntaxKind . OpenBraceToken ) {
3414
3413
// Returning undefined here will cause our caller to rewind to where we started from.
3415
3414
return undefined ;
3416
3415
}
You can’t perform that action at this time.
0 commit comments