Skip to content

Consistently error on circular constraints#30109

Merged
ahejlsberg merged 4 commits into
masterfrom
circularConstraintErrors
Feb 28, 2019
Merged

Consistently error on circular constraints#30109
ahejlsberg merged 4 commits into
masterfrom
circularConstraintErrors

Conversation

@ahejlsberg
Copy link
Copy Markdown
Member

With this PR we consistently error when detecting circular constraints. In particular, we now report errors when circularities occur during instantiation but not when checking the original declaration. When the node currently being checked (the node referenced by currentNode) is neither a descendant nor an ancestor of the constraint type node, we also report the current node as the associated source location in which the circularity originates.

Fixes #29992.

@RyanCavanaugh
Copy link
Copy Markdown
Member

I'm guessing this will have some DT breaks

@ahejlsberg
Copy link
Copy Markdown
Member Author

@typescript-bot test this & @typescript-bot run dt

@typescript-bot
Copy link
Copy Markdown
Collaborator

typescript-bot commented Feb 28, 2019

Heya @ahejlsberg, I've started to run the Definitely Typed test suite on this PR at ecebc9f. You can monitor the build here. It should now contribute to this PR's status checks.

@typescript-bot
Copy link
Copy Markdown
Collaborator

typescript-bot commented Feb 28, 2019

Heya @ahejlsberg, I've started to run the extended test suite on this PR at ecebc9f. You can monitor the build here. It should now contribute to this PR's status checks.

@ahejlsberg
Copy link
Copy Markdown
Member Author

@RyanCavanaugh Best I can tell, none of the RWC and DT failures are related to this PR. And really, the only new failures this could cause are new circularity errors and there are none of those.

@weswigham
Copy link
Copy Markdown
Member

The DT failures look like the ones from master two days ago, so I think you're fine, too.

@ahejlsberg ahejlsberg merged commit 237c33b into master Feb 28, 2019
@ahejlsberg ahejlsberg deleted the circularConstraintErrors branch February 28, 2019 20:57
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

4 participants