Skip to content
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

Conversion check for cycle introduction and transitivity check #16

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

insafuhrmann
Copy link
Member

Changes in conversion.ts:
Eliminated TODOs by implementing graph algorithm to be used in check for introduction of cycles through implicit conversion and for transitive conversion checks.

Introduces error in markAsConvertibleSigne in case an implicit conversion has introduced a cycle in the type graph.

…ion.ts.

Throw error in case implicit conversion has introduced a cycle in the type graph.
Copy link
Collaborator

@JohannesMeierSE JohannesMeierSE left a comment

Choose a reason for hiding this comment

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

Thanks for this implementation! It looks very nice!

I found only a typo. After fixing, feel free to merge this PR on main yourself 🙂

packages/typir/src/features/conversion.ts Outdated Show resolved Hide resolved
packages/typir/src/features/conversion.ts Show resolved Hide resolved
@insafuhrmann
Copy link
Member Author

@JohannesMeierSE Thanks for reviewing and approval. The typo is fixed now.

@insafuhrmann insafuhrmann merged commit 9d47f82 into main Oct 14, 2024
2 checks passed
@JohannesMeierSE JohannesMeierSE added this to the v0.1 milestone Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants