mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Remove spurious lookAhead, as this fn is already in a lookAhead
This commit is contained in:
parent
958adfc9d8
commit
e9d39bd95f
@ -4538,7 +4538,7 @@ namespace ts {
|
||||
// isn't actually allowed, but we want to treat it as a lambda so we can provide
|
||||
// a good error message.
|
||||
if (isModifierKind(second) && second !== SyntaxKind.AsyncKeyword && lookAhead(nextTokenIsIdentifier)) {
|
||||
if (lookAhead(() => nextToken() === SyntaxKind.AsKeyword)) {
|
||||
if (nextToken() === SyntaxKind.AsKeyword) {
|
||||
// https://github.com/microsoft/TypeScript/issues/44466
|
||||
return Tristate.False;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user