Skip to content

Clarify how implicit conversions happen in patterns. #2541

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 6 commits into from
Nov 3, 2022

Conversation

munificent
Copy link
Member

Fix #2488.

Do use a downwards context type when inferring constant patterns.

But don't insert implicit coercions in refutable patterns.
# Conflicts:
#	working/0546-patterns/patterns-feature-specification.md
@munificent munificent merged commit b46ad3c into master Nov 3, 2022
@munificent munificent deleted the clarify-coercions branch November 3, 2022 21:23
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.

[Records] Should pointwise implicit downcasts be allowed in records?
3 participants