Skip to content

Fix #10614: align unchecked pattern definition syntax with Scala 2 #10793

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 7 commits into from
Dec 15, 2020

Conversation

liufengyun
Copy link
Contributor

Fix #10614: align unchecked pattern definition syntax with Scala 2

@liufengyun liufengyun added this to the 3.0.0-M3 milestone Dec 14, 2020
@liufengyun liufengyun force-pushed the fix-10614 branch 3 times, most recently from fd879a8 to dd8a2af Compare December 14, 2020 23:06
The test case is tests/neg/deferred-patdef.scala
1. Warnings are more consistent with exhaustivity check where only
warnings are issued
2. Errors are not friendly for prototyping, where the programmer makes
assumptions about what values are possible.
@liufengyun liufengyun merged commit bbd092b into scala:master Dec 15, 2020
@liufengyun liufengyun deleted the fix-10614 branch December 15, 2020 18:40
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Jan 15, 2021
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Jan 18, 2021
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Jan 18, 2021
@Kordyjan Kordyjan modified the milestones: 3.0.0-M3, 3.0.0 Aug 2, 2023
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.

Usage of @unchecked annotation with val is inconsistent between Scala 2 and 3
3 participants