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

Use alternative way of ignoring measures when detecting integral types #17040

Merged
merged 4 commits into from
Apr 15, 2024

Conversation

brianrourkeboll
Copy link
Contributor

@brianrourkeboll brianrourkeboll commented Apr 12, 2024

Description

Followup to #16650. Fixes #17025.

  • Use typeEquivAux EraseMeasures instead of calling stripMeasuresFromTy and passing the result into typeEquiv when determining whether the range operator's type argument is an integral type. I originally assumed that the outcome would be the same for both approaches, but that appears not always to be the case (though it often is).

Notes

Checklist

  • Test cases added.
  • Release notes entry updated.

* Use `typeEquivAux EraseMeasures` instead of calling
  `stripMeasuresFromTy` and passing the result into `typeEquiv` when
  determining whether the range operator's type argument is an integral
  type. I would have expected the outcome to be the same for both
  approaches, but that appears not always to be the case (though it
  often is).
Copy link
Contributor

github-actions bot commented Apr 12, 2024

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/8.0.400.md

@brianrourkeboll brianrourkeboll marked this pull request as ready for review April 12, 2024 17:08
@brianrourkeboll brianrourkeboll requested a review from a team as a code owner April 12, 2024 17:08
@vzarytovskii vzarytovskii enabled auto-merge (squash) April 15, 2024 08:52
auto-merge was automatically disabled April 15, 2024 11:38

Head branch was pushed to by a user without write access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Compiler error with iteration and units of measure in F# 17.10 preview with LangVersion Preview
4 participants