Skip to content

Fix issue #5444 #5566

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

Merged
merged 3 commits into from
Nov 28, 2015
Merged

Fix issue #5444 #5566

merged 3 commits into from
Nov 28, 2015

Conversation

jeffreymorlan
Copy link
Contributor

reportImplementationExpectedError: The next node in the tree is not
necessarily consecutive. This happens due to syntax errors, e.g.

class C { foo(), foo(); }

Edit by @DanielRosenwasser: Fixes #5444

reportImplementationExpectedError: The next node in the tree is not
necessarily consecutive. This happens due to syntax errors, e.g.

    class C { foo(), foo(); }
@msftclas
Copy link

msftclas commented Nov 8, 2015

Hi @jeffreymorlan, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@mhegazy
Copy link
Contributor

mhegazy commented Nov 9, 2015

Can you please add unit tests.

@DanielRosenwasser
Copy link
Member

To be clear, @mhegazy does't mean a unit test, he means an end-to-end test. Check out Adding a Test in our CONTRIBUTING.md.

@@ -11205,7 +11205,7 @@ namespace ts {
seen = c === node;
}
});
if (subsequentNode) {
if (subsequentNode && subsequentNode.pos === node.end) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment that you need this test because garbage declarations may be introduced between overloads and cause issues according to our expectations

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@DanielRosenwasser
Copy link
Member

👍 @vladima could you take a look?

@vladima
Copy link
Contributor

vladima commented Nov 24, 2015

👍 after @DanielRosenwasser note about the comment is addressed

DanielRosenwasser added a commit that referenced this pull request Nov 28, 2015
@DanielRosenwasser DanielRosenwasser merged commit 2f282a7 into microsoft:master Nov 28, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants