Skip to content

"module type of" zap modalities to floor #3922

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 5 commits into from
Apr 30, 2025
Merged

Conversation

riaqn
Copy link
Contributor

@riaqn riaqn commented Apr 24, 2025

module type of M should zap modalities in M to the strongest. This might cause type error where user uses module type of M to constrain another implementation that's weaker than M, which is just bad code. I did some quick check in our internal code base and found such bad code to be rare.

@riaqn riaqn requested a review from dkalinichenko-js April 24, 2025 12:26
@riaqn
Copy link
Contributor Author

riaqn commented Apr 24, 2025

@dkalinichenko-js can you look at the updated tests (those with added stateless) if they are correct?

@riaqn riaqn enabled auto-merge (squash) April 30, 2025 11:13
@riaqn riaqn merged commit edcc229 into main Apr 30, 2025
26 checks passed
@riaqn riaqn deleted the module-type-of-zap-to-floor branch April 30, 2025 11:40
spiessimon pushed a commit to spiessimon/flambda-backend that referenced this pull request Apr 30, 2025
@riaqn riaqn mentioned this pull request May 1, 2025
3 tasks
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.

3 participants