mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-21 15:58:24 -05:00
Remove spurious lookAhead, as this fn is already in a lookAhead
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user