-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Assertion error with if-else-if inside class #5444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
A PR would be appreciated. |
I don't know what the right fix to this is, but here's my analysis:
The problem is the two different definitions of what makes nodes "consecutive". Is it node.pos === prev.end, or being next in the ts.forEachChild iteration? |
@vladima any thoughts? |
reportImplementationExpectedError: The next node in the tree is not necessarily consecutive. This happens due to syntax errors, e.g. class C { foo(), foo(); }
I've realized it would be inefficient for |
Thanks @jeffreymorlan! |
Type-checking the following (broken) program:
results in an assertion error:
The text was updated successfully, but these errors were encountered: