You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason is that those use fillSignature, which sets yield/await context. parseIndexSignatureDeclaration doesn't, presumably because the parameters are delimited by [] instead of ().
So we could simply modify the parseIndexSignatureDeclaration code to set yield/await context too.
Or, pass the open/close token as parameters to parseParameterList instead of hardcoding parens there, then call that instead of parseBracketedList.
TypeScript Version: nightly (2.3.0-dev.20170404)
Code
Expected behavior:
No errors.
Actual behavior:
We use
isIdentifier
in a few places where it doesn't really make sense to care whether we're in a yield context or not.The text was updated successfully, but these errors were encountered: