Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed as not planned
Closed as not planned
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Relevant Package
ast-spec
Playground Link
Repro Code
constexample={}asany;(awaitexample).prop;(awaitnewexample).prop;
ESLint Config
No response
tsconfig
No response
Expected Result
In the type system: theobject property in theTSESTree.MemberExpression type is aTSESTree.LeftHandSideExpression.
In the playground's tree: theobject property on the firstMemberExpression is anAwaitExpression. The secondMemberExpression'sobject property is aNewExpression.
TSESTree.LeftHandSideExpression should therefore allowTSESTree.AwaitExpression andTSESTree.NewExpression.
Actual Result
TheTSESTree.LeftHandSideExpression union does not includeTSESTree.AwaitExpression orTSESTree.NewExpression.
Additional Info
Originally spotted inhttps://github.com/typescript-eslint/typescript-eslint/pull/6028/files#r1032600861
Versions
| package | version |
|---|---|
@typescript-eslint/ast-spec | 5.46.1 |
@typescript-eslint/types | 5.46.1 |
@typescript-eslint/typescript-estree | 5.46.1 |